public ImplVec(IHostEnvironment env, IPredictorModel[] predictors, IMultiClassOutputCombiner combiner) : base(env, predictors, combiner, LoaderSignature, MetadataUtils.Const.ScoreColumnKind.MultiClassClassification) { int classCount = CheckLabelColumn(Host, predictors, false); _scoreType = new VectorType(NumberType.R4, 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> public EnsembleMultiClassModelParameters(IHostEnvironment env, FeatureSubsetModel <TVectorPredictor>[] models, IMultiClassOutputCombiner combiner, Single[] weights = null) : base(env, RegistrationName, models, combiner, weights) { InitializeMappers(out _mappers, out _inputType, out _outputType); }