相关疑难解决方法(0)

神经网络和二元分类指南

我有以下数据 (X) 存储在 numpy 数组中:

array([[ 0.82737724, -0.5924806 ,  0.43279337, ...,  0.91896631,
        -0.28188124,  0.58595414],
       [-1.56610693,  0.63878901,  0.43279337, ...,  1.28262456,
         1.16154512, -1.9423032 ],
       [ 0.82737724, -0.2846632 , -0.4745452 , ...,  1.64628282,
        -0.28188124,  0.58595414],
       ...,
       [ 0.82737724,  0.        ,  0.43279337, ...,  1.67617254,
        -0.28188124,  0.58595414],
       [-1.56610693, -0.2846632 , -0.4745452 , ..., -1.64656796,
         0.27001707, -1.9423032 ],
       [ 0.82737724,  0.17706291, -0.4745452 , ...,  0.63501397,
        -0.28188124, -0.67817453]])
Run Code Online (Sandbox Code Playgroud)

该数组要大得多,并且它被输入到这个神经网络中:

def base_model1():
    input_dim = X.shape[1]
    output_dim = 1
    model = Sequential()
    model.add(Dense(10, input_dim= input_dim,kernel_initializer ='normal', activation= 'tanh'))
    model.add(Dense(1, …
Run Code Online (Sandbox Code Playgroud)

python machine-learning neural-network keras

3
推荐指数
1
解决办法
2078
查看次数

标签 统计

keras ×1

machine-learning ×1

neural-network ×1

python ×1