/// <summary>
        /// Create a trainer.
        /// </summary>
        /// <param name="env">host</param>
        /// <param name="settings">trainer description as a string such <pre>ova{p=lr}</pre></param>
        /// <param name="extraArgs">additional arguments</param>
        public static ITrainerExtended CreateTrainer(IHostEnvironment env, string settings, params object[] extraArgs)
        {
            var sc   = ScikitSubComponent.Parse <ITrainer, SignatureTrainer>(settings);
            var inst = sc.CreateInstance(env, extraArgs);

            return(new ExtendedTrainer(inst, sc.Kind));
        }
Exemple #2
0
 public static bool IsGood(this ScikitSubComponent src)
 {
     return(src != null && !src.IsEmpty);
 }