{"shas":[["83540a27b46c24eba09b93a3ff4708ce678d2741","333f9f7b95f8c43faebef8934bcf7a6c66baa973@gmail.com","Fix instance-set-class to work with ordinal class attributes.","Alex Robbins"],["42a36ae2ed5c2ced383e41c99b1837a34145218f","73675debcd8a436be48ec22211dcf44fe0df0a64@benmabey.com","exclude ant so new version of lein is happy","Ben Mabey"],["70a37fc0e90709f7c67ff928f0d55cf1124a7c66","73675debcd8a436be48ec22211dcf44fe0df0a64@benmabey.com","Merge pull request #1 from alexrobbins/clj-ml\n\n---\n\nHey, I was working through the classifications tutorial and hit an error at the end. It looks like the instance-set-class function in data.clj only works if you class attribute is numeric. I was using an ordinal class attribute in the tutorial and I was getting an exception with the very last step\n\n(classifier-label classifier to-classify)\n=> #CompilerException java.lang.ClassCastException: java.lang.Double cannot be cast to java.lang.String (REPL:25)\n\nIt looks like weka outputs values as numbers, but only accepts inputs for the value as a string if it is an ordinal. I just added a branch that looks up the string value given an index and assigns that in the ordinal case. It fixed the tutorial for me.\n\nThanks!\nAlex","Ben Mabey"],["7318ed6ca4e8c95053f6cc766caf03e9555e800c","73675debcd8a436be48ec22211dcf44fe0df0a64@benmabey.com","adds type-hint","Ben Mabey"]],"ref":"refs/heads/master","size":4,"head":"7318ed6ca4e8c95053f6cc766caf03e9555e800c","push_id":32268566}