Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dataset mutation #62

Open
Berkmann18 opened this issue Apr 30, 2019 · 0 comments
Open

Dataset mutation #62

Berkmann18 opened this issue Apr 30, 2019 · 0 comments

Comments

@Berkmann18
Copy link
Contributor

Berkmann18 commented Apr 30, 2019

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant