hughperkins / DeepCL

OpenCL library to train deep convolutional neural networks
Mozilla Public License 2.0
867 stars 199 forks source link

PyDeepCL: NetLearner not callable with new trainer types #50

Closed mbPDWTeSe33 closed 8 years ago

mbPDWTeSe33 commented 8 years ago

PyDeepCL.NetLearner(adadelta, net, N, images, labels, testN, testImages, testLabels, batchSize) results in TypeError: Argument 'sgd' has incorrect type (expected PyDeepCL.SGD, got PyDeepCL.Adadelta)

Same error with Anneal, Nesterov, Adagrad and Rmsprop.

Doc from NeuralNetAPI gives trainer:

NetLearner netLearner(
    trainer, net,   // <<
    Ntrain, trainData, trainLabels,
    Ntest, testData, testLabels );
hughperkins commented 8 years ago

Hmmm, right. I need to check this point.

hughperkins commented 8 years ago

Addressed in 2f6dfc9