Skip to content

Commit

Permalink
up
Browse files Browse the repository at this point in the history
  • Loading branch information
xieyuheng committed Jun 6, 2024
1 parent b4d0d7c commit f87e8fb
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions src/system-a/models/iris/irisModel.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,9 @@ export function irisTrainParameters(): Array<Tensor> {
const initParameters = denseBlockInitParameters(irisNetwork.shapes)

gradientDescentNaked
const gradientDescentFn = gradientDescentNaked({
learningRate: 0.0002,
})
// const gradientDescentFn = gradientDescentNaked({
// learningRate: 0.0002,
// })

gradientDescentRms
// const gradientDescentFn = gradientDescentRms({
Expand All @@ -45,11 +45,11 @@ export function irisTrainParameters(): Array<Tensor> {
// })

gradientDescentAdam
// const gradientDescentFn = gradientDescentAdam({
// learningRate: 0.001,
// decayRate: 0.9,
// relayFactor: 0.85,
// })
const gradientDescentFn = gradientDescentAdam({
learningRate: 0.0001,
decayRate: 0.9,
relayFactor: 0.85,
})

return gradientDescentFn(objective, initParameters, {
revs: 2000,
Expand Down

0 comments on commit f87e8fb

Please sign in to comment.