We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
val model = Sequential[Float]() .add(Dense(hiddenSize, inputShape = Shape(inputSize))) .add(Activation("relu")) .add(Dense(1)) val optimizer = Optimizer(model = model, sampleRDD = trainingTensor.map(_._2), criterion = MSECriterion[Float](), batchSize = 100000) optimizer .setOptimMethod(new Adam(0.001)) .setEndWhen(Trigger.maxEpoch(100)) .optimize()
I don't know how to calculate the MSE values of the training and testing sets through the model
The text was updated successfully, but these errors were encountered:
You can add a validation set to evaluate the model during the training, like: https://github.com/intel-analytics/BigDL-2.x/blob/b4cde76e58c3b97c69424f0c8bbc4c6d08879195/scala/dllib/src/main/scala/com/intel/analytics/bigdl/dllib/models/lenet/Train.scala#L99
And you can use validator to evalute your model after training, like: https://github.com/intel-analytics/BigDL-2.x/blob/b4cde76e58c3b97c69424f0c8bbc4c6d08879195/scala/dllib/src/test/scala/com/intel/analytics/bigdl/dllib/optim/ValidatorSpec.scala#L57-L60
Sorry, something went wrong.
qiuxin2012
No branches or pull requests
I don't know how to calculate the MSE values of the training and testing sets through the model
The text was updated successfully, but these errors were encountered: