Package Exports
- tf-simple
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (tf-simple) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
Example Usage
const train = require('tf-simple').train;
const data = [
{inputs: [0,0, 'yeet', 'teey'], outputs: [0]},
{inputs: [0,1, 'yeet', 'teey'], outputs: [1]},
{inputs: [1,0, 'yeet', 'teey'], outputs: [1]},
{inputs: [1,1, 'yeet', 'teey'], outputs: [0]},
];
const arch = [
{units: 12, activation: 'relu'},
{units: 1, activation: 'sigmoid'}
]
(async()=>{
await train({
data,
arch,
useValLoss: false,
desiredLoss: .00001,
validation: .3,
shuffle: false,
verbose: 2
});
})();