GraphicalModelLearning.jl icon indicating copy to clipboard operation
GraphicalModelLearning.jl copied to clipboard

Default behavior when parsing CSV

Open ccoffrin opened this issue 8 years ago • 2 comments

How should we deal with float vs int data types?

ccoffrin avatar Nov 15 '17 05:11 ccoffrin

Are we talking about the default behavior of the learning algorithm or the parser for the data structure? If it is the earlier we can imagine having a different default behavior depending on the algo. (Inverse Ising can convert to bool or int, gaussian methods can convert to float, etc...).

marc-vuffray avatar Nov 17 '17 19:11 marc-vuffray

The core issue here is when a user reads discrete data into Julia as floats, instead of int or bool.

You propose a good solution. If the user passes a floating point samples into a discrete model solver, we can first try to convert the floating point data to discrete data and throw a warning if it works and an error if it does not work.

ccoffrin avatar Nov 17 '17 19:11 ccoffrin