
org.campagnelab.dl.somatic.mappers.PositiveControlFeatureMapper Maven / Gradle / Ivy
package org.campagnelab.dl.somatic.mappers;
import org.campagnelab.dl.framework.mappers.NoMaskFeatureMapper;
import org.campagnelab.dl.varanalysis.protobuf.BaseInformationRecords;
import org.nd4j.linalg.api.ndarray.INDArray;
/**
* The FeatureMapper to test for the second iteration.
* Created by fac2003 on 5/24/16.
*/
public class PositiveControlFeatureMapper extends NoMaskFeatureMapper {
@Override
public int numberOfFeatures() {
return 2;
}
@Override
public void prepareToNormalize(BaseInformationRecords.BaseInformationOrBuilder record, int indexOfRecord) {
}
@Override
public void mapFeatures(BaseInformationRecords.BaseInformationOrBuilder record, INDArray inputs, int indexOfRecord) {
for (int i=0;i
© 2015 - 2025 Weber Informatics LLC | Privacy Policy