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

AddNumbersTrainingData #33

Open
aliizzet opened this issue Sep 10, 2019 · 2 comments
Open

AddNumbersTrainingData #33

aliizzet opened this issue Sep 10, 2019 · 2 comments

Comments

@aliizzet
Copy link

Can you give an example to AddNumbersTrainingData?

When I try GotError gives

train
invalid data

Thanks

@dalelane
Copy link
Collaborator

If you have a project with fields specified like this:

image

and labels like this:

image

then you can add training data from App Inventor like this:

image

which would result in this:

image

@dalelane
Copy link
Collaborator

However, I think you have found a valid bug here, because if you have a project with multiple choice fields like this:

image

and labels like this

image

then the App Inventor blocks don't work, because if you do this:

image

you will get an "Invalid double" error.

@kylecorry31 I think we can't assume that number values are always double because Strings are valid for multiple-choice fields.
e.g.

public void addTrainingData(String label, List<Double> numbers) throws ML4KException {

I think numbers there should be a List<String> and so on.

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

2 participants