摘要: #coding:utf-8 from sklearn.neural_network import MLPRegressor from sklearn.model_selection import train_test_split from sklearn.metrics import mean_sq 阅读全文
posted @ 2023-03-26 14:55 Please Call me 小强 阅读(18) 评论(0) 推荐(0) 编辑
摘要: from sklearn.neural_network import MLPRegressor import numpy as np # 创建神经网络对象 # 使用adam优化器 adam是一种梯度下降算法 # 使用sgd优化器 adam是一种随机梯度下降算法 model = MLPRegresso 阅读全文
posted @ 2023-03-26 11:00 Please Call me 小强 阅读(23) 评论(0) 推荐(0) 编辑
摘要: import numpy as np class NeuralNetwork: def __init__(self, input_size, output_size): self.input_size = input_size self.output_size = output_size self. 阅读全文
posted @ 2023-03-26 10:36 Please Call me 小强 阅读(13) 评论(0) 推荐(0) 编辑