import * as Chai from 'chai'; import {ExpMax, probability, density } from '../lib'; const should = Chai.should(); /** * How to use the expmax lib * ``` * it('should return squared number', () => { * const dataset: IDataset = { * 'points': [ * [1.1,1], * [1,2], * [2,2], * [2,1], * [15,15], * [15,16], * ], * 'label':'test', * }; * const opts: IEmOptions = { * 'clusterQt':2, * 'maxEpochs':1000, * 'threshold': 2e-16 * } * const model = new ExpMax(dataset, opts); * const trainedModel = model.train() * console.log(trainedModel); * }); * ``` */ describe('Library#index', () => { it("should export what's needed", () => { should.exist(ExpMax); should.exist(probability); should.exist(density); }); /* it('should return squared number', () => { const dataset = { 'points': [ [1.1,1], [1,2], [2,2], [2,1], [15,15], [15,16], ], 'label':'test', }; const opts = { 'clusterQt':2, 'maxEpochs':1000, 'threshold': 2e-16 } const model = new ExpMax(dataset, opts); const trainedModel = model.train() console.log(trainedModel); });*/ });