limdu icon indicating copy to clipboard operation
limdu copied to clipboard

Dataset mutation

Open Berkmann18 opened this issue 5 years ago • 0 comments

After running unit tests on a project that uses limdu, I noticed that once the classifiers train method is called, the dataset is being mutated. What I mean by this is that I have a class Learner that has a dataset field and a classifier one (which is similar to intentClassifier in the examples). dataset has the [ { input: 'string', output: 'category string' }, ...] structure, after train() is called on say Learner.classifier, the dataset (so both the training and testing sets) has outputs being arrays with the strings.

I'm not sure if it's intended or if the format (post-mutation) is what should be used instead of what's in the docs.

Ref: https://github.com/all-contributors/ac-learn/tree/limdu

Berkmann18 avatar Apr 30 '19 15:04 Berkmann18