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

Changing attribute from Double to String #2

Open
daniel-draper opened this issue Feb 22, 2018 · 0 comments
Open

Changing attribute from Double to String #2

daniel-draper opened this issue Feb 22, 2018 · 0 comments

Comments

@daniel-draper
Copy link

I am in the process of editing this template to match my dataset needs. Most of my data is of type Double, however I have an attribute of type String as well. In Algorithm.scala I have changed the attribute types as shown below

screen shot 2018-02-22 at 11 21 16

However, when doing pio train it reads the strings for 'LSTAT' in the csv file I imported as null

screen shot 2018-02-22 at 11 44 14

And I also get the following error as it thinks LSTAT is still a Double.

screen shot 2018-02-22 at 11 44 29

Anybody know why this is still seeing LSTAT as a Double?
I may have taken the wrong approach to changing the type of attributes that this engine can use when training, if so then what is the best way to edit this template to allow Double and Strings to be used in a dataset.

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