这里有回归问题的基本设置。您可以尝试使用神经网络工具包解决此问题。我写了一个名为 theanets 的工具包,它可能会有所帮助,所以我将举一个简单的例子来说明如何使用它:
import numpy as np
import theanets
# set up data arrays: X is input, Y is target output
X = np.array([
[0.2,0.6,0.2,0.6,0.1,0.3,0.1],
[0.1,0.2,0.3,0.6,0.5,0.1,0.2],
], 'f')
Y = np.array([
[100,0,123,2,14,15,2],
[10,10,13,22,4,135,22],
], 'f')
# set up a regression model:
# map from X to Y using one hidden layer.
exp = theanets.Experiment(
theanets.Regressor,
(X.shape[1], 100, Y.shape[1]))
# train the model using rmsprop.
exp.train([X, Y], algorithm='rmsprop')
# predict outputs for some inputs.
Yhat = exp.network.predict(X)
有多种配置和训练模型的选项,请查看文档了解更多信息。
还有很多很多其他的神经网络工具包,这里只是我熟悉的几个流行的:
您可能想尝试一下,看看它们是否更适合您尝试解决的问题的心智模型。