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

sklearn2pmml.statsmodels.StatsModelsOrdinalClassifier Maven / Gradle / Ivy

/*
 * Copyright (c) 2023 Villu Ruusmann
 *
 * This file is part of JPMML-SkLearn
 *
 * JPMML-SkLearn is free software: you can redistribute it and/or modify
 * it under the terms of the GNU Affero General Public License as published by
 * the Free Software Foundation, either version 3 of the License, or
 * (at your option) any later version.
 *
 * JPMML-SkLearn is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU Affero General Public License for more details.
 *
 * You should have received a copy of the GNU Affero General Public License
 * along with JPMML-SkLearn.  If not, see .
 */
package sklearn2pmml.statsmodels;

import java.util.List;

import org.dmg.pmml.DataType;
import org.dmg.pmml.OpType;
import org.jpmml.converter.DiscreteLabel;
import org.jpmml.sklearn.SkLearnEncoder;

public class StatsModelsOrdinalClassifier extends StatsModelsClassifier {

	public StatsModelsOrdinalClassifier(String module, String name){
		super(module, name);
	}

	@Override
	protected DiscreteLabel encodeLabel(String name, OpType opType, DataType dataType, List categories, SkLearnEncoder encoder){
		return super.encodeLabel(name, OpType.ORDINAL, dataType, categories, encoder);
	}
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy