public class Estimator
extends java.lang.Object
限定符和类型 | 类和说明 |
---|---|
static class |
Estimator.Model<T extends java.lang.Number> |
构造器和说明 |
---|
Estimator(ICompressor compressor) |
Estimator(int compressorIndex) |
Estimator(int compressorIndex,
int compressionLevel) |
Estimator(java.lang.String compressorName) |
Estimator(java.lang.String compressorName,
int compressionLevel) |
限定符和类型 | 方法和说明 |
---|---|
<T extends java.lang.Number & java.lang.Comparable<? super T>> |
addTrainingSets(edu.sysu.pmglab.compressor.Estimator.Range<T> range)
添加自定义规模的训练数据集
|
edu.sysu.pmglab.container.VolumeByteStream |
generateRandomData(int length) |
<T extends java.lang.Number & java.lang.Comparable<? super T>> |
lossFunction(Estimator.Model<T> model) |
static void |
main(java.lang.String[] args) |
Estimator.Model<java.lang.Double> |
optimize() |
<T extends java.lang.Number & java.lang.Comparable<? super T>> |
optimize(edu.sysu.pmglab.compressor.Estimator.Range<T>... parameters)
使用网格搜索进行最优化
|
void |
setRandomSeed(long seed)
设置随机种子
|
public Estimator(int compressorIndex)
public Estimator(int compressorIndex, int compressionLevel)
public Estimator(java.lang.String compressorName)
public Estimator(java.lang.String compressorName, int compressionLevel)
public Estimator(ICompressor compressor)
public void setRandomSeed(long seed)
seed
- 随机种子 (用于复现结果)public <T extends java.lang.Number & java.lang.Comparable<? super T>> void addTrainingSets(edu.sysu.pmglab.compressor.Estimator.Range<T> range) throws java.io.IOException
T
- 值的类型range
- 范围编码器java.io.IOException
- IO 异常@SafeVarargs public final <T extends java.lang.Number & java.lang.Comparable<? super T>> Estimator.Model<T> optimize(edu.sysu.pmglab.compressor.Estimator.Range<T>... parameters)
T
- 值的类型parameters
- 范围编码器public Estimator.Model<java.lang.Double> optimize()
public <T extends java.lang.Number & java.lang.Comparable<? super T>> double lossFunction(Estimator.Model<T> model)
public edu.sysu.pmglab.container.VolumeByteStream generateRandomData(int length)
public static void main(java.lang.String[] args) throws java.io.IOException
java.io.IOException