void SetUp() {
    shared_ptr<core::table::column_table> table(new core::table::column_table);
    core::nearest_neighbor::lsh::config conf;

    nearest_neighbor_.reset(new driver::nearest_neighbor(
        shared_ptr<core::nearest_neighbor::nearest_neighbor_base>(
            new core::nearest_neighbor::lsh(conf, table, "")),
        make_fv_converter()));
  }
Beispiel #2
0
  void SetUp() {
    core::anomaly::lof_storage::config lof_config;
    lof_config.nearest_neighbor_num = 10;
    lof_config.reverse_nearest_neighbor_num = 30;
    core::recommender::euclid_lsh::config lsh_config;
    lsh_config.hash_num = 8;
    lsh_config.table_num = 8;
    lsh_config.probe_num = 8;
    lsh_config.bin_width = 8.2;
    lsh_config.seed = 1234;

    anomaly_.reset(new driver::anomaly(
          shared_ptr<anomaly_base>(
              new core::anomaly::lof(lof_config,
                  shared_ptr<core::recommender::recommender_base>(
                      new core::recommender::euclid_lsh(lsh_config)))),
          make_fv_converter()));
  }
Beispiel #3
0
  void SetUp() {
    core::anomaly::light_lof::config lof_config;
    lof_config.nearest_neighbor_num = 3;
    lof_config.reverse_nearest_neighbor_num = 3;

    shared_ptr<table::column_table> lsh_table(
        new table::column_table);
    core::nearest_neighbor::euclid_lsh::config lsh_config;
    shared_ptr<core::nearest_neighbor::nearest_neighbor_base> lsh(
        new core::nearest_neighbor::euclid_lsh(lsh_config, lsh_table, "id"));

    unlearner::lru_unlearner::config unlearner_config;
    unlearner_config.max_size = 5;
    jubatus::util::lang::shared_ptr<unlearner::unlearner_base> unlearner(
        new unlearner::lru_unlearner(unlearner_config));

    anomaly_.reset(new anomaly(
                       shared_ptr<anomaly_base>(
                           new core::anomaly::light_lof(
                               lof_config, "id", lsh, unlearner)),
                           make_fv_converter()));
  }
 void SetUp() {
   recommender_.reset(new driver::recommender(
         jubatus::util::lang::shared_ptr<core::recommender::recommender_base>(
           new core::recommender::inverted_index),
         make_fv_converter()));
 }
Beispiel #5
0
 void SetUp() {
   classifier_.reset(new driver::classifier(
         GetParam(),
         make_fv_converter()));
 }