jcastro-inf / delfos

delfos: DEveLopers' Framework of Suggestions is a recommender systems library that has a number of recommendation algorithms, datasets, experimentation protocols and metrics to perform experiments to evaluate and compare recommendation techniques.
2 stars 1 forks source link

Enable multiple Parameter value setting to a Parameter Owner #4

Closed jcastro-inf closed 8 years ago

jcastro-inf commented 8 years ago

This should be possible to avoid that a change in two parameters or more on a recommender systems triggers two or more recommendationModel updates in the "--neighborhood-gui" interface.

For each setParameterValue, a parameterChanged event is triggered. If in one metod a bunch of parameters is set, only one parameterChanged event is triggered at the end of the parameter values changes.

jcastro-inf commented 8 years ago

The implementation of this feature would make too complicate to implement a listener.

To avodi replicate computation, implement the changes associated to the listener in a separate thread and cancel its execution if a new parameterChanged event happens before finishing the execution.