Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add factory for the ParameterObservers. #4557

Commits on Apr 18, 2019

  1. Add factory for the ParameterObservers.

    * Rename ParameterObserverInterface to ParameterObserver for consistency;
    * Make ParameterObserver inherith from SGObject;
    * Convert usages in the meta examples;
    * Split on_next into on_next and on_next_impl;
    * Add more methods to ParameverObserver to get a single observation;
    * Refactor ParameterObserverCV;
    * Fix SWIG interfaces;
    * Fix format;
    geektoni committed Apr 18, 2019
    Configuration menu
    Copy the full SHA
    7cf6ee5 View commit details
    Browse the repository at this point in the history
  2. Modify get_observation() method in order to work with the interfaces.

    * Add get_observations() method which outputs a vector of observation
    * given a name, casted by a user type;
    * Add SWIG code to ensure correct translation of the templates;
    * Update cross validation meta example;
    * Fix cpp meta examples translation by adding the correct conversion from
      get_CV_storage to the get_observation method;
    * Fix unit tests.
    geektoni committed Apr 18, 2019
    Configuration menu
    Copy the full SHA
    2ea71a5 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    bdb8fef View commit details
    Browse the repository at this point in the history
  4. Fix ParameterObserver to work with the new ObservedValueTemplated.

    * Remove wrong call to m_observations inside ParameterObserverCV.
    geektoni committed Apr 18, 2019
    Configuration menu
    Copy the full SHA
    846165c View commit details
    Browse the repository at this point in the history
  5. Fix MKL with CV example.

    * Fix ParameterObserverCV unittest.
    geektoni committed Apr 18, 2019
    Configuration menu
    Copy the full SHA
    3091b70 View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    95fb7e0 View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    af6f861 View commit details
    Browse the repository at this point in the history
  8. Configuration menu
    Copy the full SHA
    00b72ca View commit details
    Browse the repository at this point in the history
  9. Add SWIG template specialization for Some<ObservedValue>.

    * Rename Some<ObservedValue> to SomeObservedValue
    * Add also some to SGBase.i
    * Guard wrap methods from SWIG
    geektoni committed Apr 18, 2019
    Configuration menu
    Copy the full SHA
    3056d04 View commit details
    Browse the repository at this point in the history
  10. Return ObservedValue * instead of Some<ObservedValue>.

    This will make SWIG much happier since Some it is still not ready
    to be exposed through the interfaces.
    geektoni committed Apr 18, 2019
    Configuration menu
    Copy the full SHA
    44da1aa View commit details
    Browse the repository at this point in the history
  11. Configuration menu
    Copy the full SHA
    795366c View commit details
    Browse the repository at this point in the history
  12. Configuration menu
    Copy the full SHA
    432d637 View commit details
    Browse the repository at this point in the history
  13. Configuration menu
    Copy the full SHA
    7060bcd View commit details
    Browse the repository at this point in the history
  14. Configuration menu
    Copy the full SHA
    b4ce5b0 View commit details
    Browse the repository at this point in the history
  15. Fix failing tests.

    geektoni committed Apr 18, 2019
    Configuration menu
    Copy the full SHA
    d18c051 View commit details
    Browse the repository at this point in the history
  16. Minor improvements.

    geektoni committed Apr 18, 2019
    Configuration menu
    Copy the full SHA
    ac6db95 View commit details
    Browse the repository at this point in the history
  17. Configuration menu
    Copy the full SHA
    a054b18 View commit details
    Browse the repository at this point in the history
  18. Fix CV unittests.

    geektoni committed Apr 18, 2019
    Configuration menu
    Copy the full SHA
    800ebe3 View commit details
    Browse the repository at this point in the history
  19. Add unit tests to check the subscribe/unsubscribe methods.

    * Fix again ParameterObserverCV tests;
    geektoni committed Apr 18, 2019
    Configuration menu
    Copy the full SHA
    e43cf29 View commit details
    Browse the repository at this point in the history
  20. Configuration menu
    Copy the full SHA
    850a322 View commit details
    Browse the repository at this point in the history
  21. Add a simple ParameterObserverLogger.

    It will print on screen all the observed values.
    geektoni committed Apr 18, 2019
    Configuration menu
    Copy the full SHA
    b24a785 View commit details
    Browse the repository at this point in the history
  22. Configuration menu
    Copy the full SHA
    86706f8 View commit details
    Browse the repository at this point in the history
  23. Configuration menu
    Copy the full SHA
    1998094 View commit details
    Browse the repository at this point in the history
  24. Fix ParameterObserverLogger when it needs to print the received values.

    * Fix comparison warning;
    geektoni committed Apr 18, 2019
    Configuration menu
    Copy the full SHA
    a795318 View commit details
    Browse the repository at this point in the history
  25. Refactor CrossValidationStorage/FoldStorage such to be gettable.

    * Fix memory error related to crossvalidation's fold results;
    geektoni committed Apr 18, 2019
    Configuration menu
    Copy the full SHA
    3ca3389 View commit details
    Browse the repository at this point in the history
  26. Configuration menu
    Copy the full SHA
    21a8efd View commit details
    Browse the repository at this point in the history
  27. Remove specialized getter from the ParameterObserver interface.

    * Fix meta examples;
    * Fix static casting issue when unsubscribing an observer;
    * Refactor all CrossValidationStorage and observers to use only CEvaluationResult
      as base class;
    geektoni committed Apr 18, 2019
    Configuration menu
    Copy the full SHA
    242e768 View commit details
    Browse the repository at this point in the history
  28. Configuration menu
    Copy the full SHA
    eaf4743 View commit details
    Browse the repository at this point in the history
  29. Configuration menu
    Copy the full SHA
    0923c1e View commit details
    Browse the repository at this point in the history
  30. Configuration menu
    Copy the full SHA
    0e9c386 View commit details
    Browse the repository at this point in the history
  31. Configuration menu
    Copy the full SHA
    93390bd View commit details
    Browse the repository at this point in the history
  32. Configuration menu
    Copy the full SHA
    cf2895e View commit details
    Browse the repository at this point in the history
  33. Refactor get(std::name, index) such to provide a non-throwing version.

    It works more nicely with the interfaces and does not bloat the entire
    terminal output with errors if it fails to cast to the corret type.
    geektoni committed Apr 18, 2019
    Configuration menu
    Copy the full SHA
    4fe2a4c View commit details
    Browse the repository at this point in the history
  34. Configuration menu
    Copy the full SHA
    66ff937 View commit details
    Browse the repository at this point in the history
  35. Configuration menu
    Copy the full SHA
    fc61e94 View commit details
    Browse the repository at this point in the history
  36. Configuration menu
    Copy the full SHA
    e626832 View commit details
    Browse the repository at this point in the history
  37. Fix some unit tests.

    geektoni committed Apr 18, 2019
    Configuration menu
    Copy the full SHA
    ac47433 View commit details
    Browse the repository at this point in the history
  38. Add as_evaluation_result() such to cast CSGObject to CEvaluationResult.

    It is needed in some languages (Java and C#).
    geektoni committed Apr 18, 2019
    Configuration menu
    Copy the full SHA
    661e750 View commit details
    Browse the repository at this point in the history
  39. Configuration menu
    Copy the full SHA
    03e47a6 View commit details
    Browse the repository at this point in the history
  40. Configuration menu
    Copy the full SHA
    10ddda9 View commit details
    Browse the repository at this point in the history
  41. Configuration menu
    Copy the full SHA
    8db46ba View commit details
    Browse the repository at this point in the history
  42. Configuration menu
    Copy the full SHA
    ac2ef79 View commit details
    Browse the repository at this point in the history