yinlou / mltk

Machine Learning Tool Kit
BSD 3-Clause "New" or "Revised" License
136 stars 74 forks source link

Support for data already in program #2

Closed kazazes closed 8 years ago

kazazes commented 8 years ago

Does mltk have support for data structures which are already present in the runtime of the program? I'm loading and manipulating data after fetching it from a remote database, and would love to pump in my matrices directly into mltk without writing to disk.

yinlou commented 8 years ago

Take a look at InstancesReader, you can construct Instances in memory easily.

kazazes commented 8 years ago

Got it, and done. I built convenience constructors that take data formatted in mltk's data format as string arguments. Would you like those in the library? Can put a quick PR together. Thank you so much for the library, it's really well put together and intuitive. Our OOP styles are quite similar.

Question: Do you have any built in method for k-fold cross validation of alpha and lambda values in an elastic net context? I didn't see anything built in to the class but I also haven't dived too deeply into any of the evaluation classes.