Skip to content

Conversation

@njayaram2
Copy link
Contributor

knn: Fix input validation issues

  • Some input validation was missing which is included now.
  • there was still a bug wrt ambiguous references to column names,
    which was only partly handled previously.

@orhankislal
Copy link
Contributor

We should remove the hardcoded schema names from the tests as well. If MADlib is installed in a different schema, they might create problems.

@orhankislal
Copy link
Contributor

orhankislal commented Feb 7, 2017

knn.sql lines 372 and 402 - 407 are not necessary anymore thanks to the expanded validation function.

- Some input validation was missing which is included now.
- there was still a bug wrt ambiguious references to column names,
which was only partly handled previously.
- In this version, the classification label column must be an integer,
1 and 0 for true and false. Having a boolen is not working out well
since madlib's mode function does not work with booleans. This
issue remains to be fixed, most likely will be fixed after 1.10.0
Remove redundant validation from sql, and remove madlib schema name
from install check.
@njayaram2 njayaram2 force-pushed the bugfix/knn-validation branch from a060ed7 to 7477b3d Compare February 7, 2017 00:44
@asfgit asfgit closed this in 2d5a5ed Feb 7, 2017
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

Successfully merging this pull request may close these issues.

2 participants