com.github.chen0040.svmext.data.DataFrame Maven / Gradle / Ivy
package com.github.chen0040.svmext.data;
import com.github.chen0040.svmext.utils.TupleTwo;
import java.util.List;
import java.util.stream.Stream;
/**
* Created by xschen on 28/4/2017.
*/
public interface DataFrame extends Iterable {
int rowCount();
DataRow row(int i);
List getInputColumns();
List getOutputColumns();
void unlock();
boolean isLocked();
void lock();
DataRow newRow();
void addRow(DataRow row);
String head(int limit);
DataFrame shuffle();
TupleTwo split(double ratio);
Stream stream();
}