All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.expleague.ml.BFGrid Maven / Gradle / Ivy

There is a newer version: 1.4.9
Show newest version
package com.expleague.ml;

import com.expleague.commons.func.Converter;
import com.expleague.commons.math.vectors.Vec;
import com.expleague.ml.data.impl.BinarizedDataSet;
import com.expleague.ml.impl.BFRowImpl;
import com.expleague.ml.io.BFGridStringConverter;

public interface BFGrid {
  Converter CONVERTER = new BFGridStringConverter();

  Row row(int feature);
  Feature bf(int bfIndex);
  void binarizeTo(Vec x, byte[] folds);

  int rows();
  int size();

  interface Row {
    int bin(double val);
    Feature bf(int index);
    double condition(int border);

    int findex();
    boolean ordered();

    int start();
    int end();
    int size();
    boolean empty();

    BFGrid grid();
  }

  interface Feature {
    boolean value(byte[] folds);
    boolean value(byte fold);
    boolean value(Vec vec);
    boolean value(int index, BinarizedDataSet bds);

    int findex();
    int bin();
    int index();

    double condition();
    double power();

    Row row();
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy