public ImplVec(IHostEnvironment env, PredictorModel[] predictors, IMulticlassOutputCombiner combiner) : base(env, predictors, combiner, LoaderSignature, AnnotationUtils.Const.ScoreColumnKind.MulticlassClassification) { int classCount = CheckLabelColumn(Host, predictors, false); _scoreType = new VectorType(NumberDataViewType.Single, classCount); }
/// <summary> /// Instantiate new ensemble model from existing sub-models. /// </summary> /// <param name="env">The host environment.</param> /// <param name="models">Array of sub-models that you want to ensemble together.</param> /// <param name="combiner">The combiner class to use to ensemble the models.</param> /// <param name="weights">The weights assigned to each model to be ensembled.</param> internal EnsembleMulticlassModelParameters(IHostEnvironment env, FeatureSubsetModel <VBuffer <float> >[] models, IMulticlassOutputCombiner combiner, Single[] weights = null) : base(env, RegistrationName, models, combiner, weights) { InitializeMappers(out _mappers, out _inputType, out _outputType); }