Skip to content
Jonas Almeida edited this page Oct 2, 2024 · 4 revisions

NN simplifications for mere mortals

PrafulB (Praful Bhawsar), added basic documentation at: https://episphere.github.io/tfjs/out

More detailed descriptions of the parameters at: https://episphere.github.io/tfjs/out/TFJSModel.html

const { TFJSModel } = await import("https://episphere.github.io/tfjs/modelBuilder.js")
const model = new TFJSModel({})
await model.loadData({
    "datasetURL": "https://episphere.github.io/ai/data/irisOHE.json",
    "labelFieldName": "species",
    "trainTestRatio": 0.8
})
await model.build()
await model.train()
await model.test() 
Clone this wiki locally