mikeizbicki / HLearn

Homomorphic machine learning
Other
1.62k stars 138 forks source link

Perceptron example doesn't compile #42

Closed reckbo closed 9 years ago

reckbo commented 9 years ago

I'm looking for a simple example of how to use one of the classifiers, and found the spam classification perceptron. I followed the README but it fails to compile, because class HasRing isn't defined anywhere:

cd $soft/HLearn/examples/spam_classification
ghc --make perceptron.hs

[1 of 1] Compiling Main             ( perceptron.hs, perceptron.o )

perceptron.hs:38:10:
    Not in scope: type constructor or class ‘HasRing’

I assume because it's out of date - are there any updated examples?

mikeizbicki commented 9 years ago

The type class HasRing only had a single type constraint within it. I moved the constraint outside the class and deleted the class, but didn't update the example. It should be fixed now.