Skip to content
New issue

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

How to use BigDL to calculate MSE values #10831

Open
gdg1212 opened this issue Apr 22, 2024 · 1 comment
Open

How to use BigDL to calculate MSE values #10831

gdg1212 opened this issue Apr 22, 2024 · 1 comment
Assignees

Comments

@gdg1212
Copy link

gdg1212 commented Apr 22, 2024

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants