Repository navigation
Fix/nominal attr mapping #40
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
Merged
Merged
Changes from all commits
Commits
Show all changes
5 commits
Select commit
Hold shift + click to select a range
f42648a
chore: update rulekit jar to 2.1.26
BartPigula 6509e2e
fix: call java mapping update on coverage calculation
BartPigula f8455bd
chore: bump version to 2.1.26.1
BartPigula 4f92547
fix: repair issue with newer pandas and nan java conversion
BartPigula 0e7a9a1
fix: replace loop with vectorized none replacement
BartPigula File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file renamed
BIN
+40.9 MB
rulekit/jar/rulekit-2.1.24-all.jar → rulekit/jar/rulekit-2.1.26-all.jar
Binary file not shown.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Co robi ta funkcja? Rozumiem, że to jest po to, że gdy w zbiorze treningowym mam np. atrybut rozmiar: big. small, medium to pod spodem jest to mapowane na: big: 0, small: 1, medium: 2 i jak podam inny zbiór z wartościami small, big, medium to dostaną one pod spodem inny mapping i przez to zostaną zwrócone złe wyniki i ten updateMapping to dopasowuje do zbioru treningowego?
Pytanie czy w takim razie w predict też nie musimy tego dodać jeżeli damy inny zbiór do predykcji? Tam też tworzymy nowy zbiór danych jak tutaj:
example_set = ExampleSetFactory(self._get_problem_type()).make(values)
return self.model._java_object.apply( # pylint: disable=protected-access
example_set
)
chyba, że w javie w apply to już jest dopasowywane?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
tak, dokładnie - updateMapping po zmianach Adama to taki odpowiednik transform z sklearn. W predict nie trzeba wywoływać wprost, bo apply w klasie PredictionModel pod spodem wywołuje
updateMapping(getTrainingHeader())