public static void RegisterAssemblies(IHostEnvironment environment)
        {
            // ensure all the assemblies in the Microsoft.ML package have been loaded
            if (!_assemblyInitializer.IsValueCreated)
            {
                _ = _assemblyInitializer.Value;
                Contracts.Assert(_assemblyInitializer.Value);
            }

            AssemblyLoadingUtils.RegisterCurrentLoadedAssemblies(environment);
        }
Exemple #2
0
        public Experiment(Runtime.IHostEnvironment env)
        {
            _env = env;
            AssemblyLoadingUtils.RegisterCurrentLoadedAssemblies(_env);

            _catalog    = _env.ComponentCatalog;
            _jsonNodes  = new List <string>();
            _serializer = new JsonSerializer();
            _serializer.Converters.Add(new StringEnumConverter());
            _helper = new SerializationHelper();
        }
Exemple #3
0
        public static void RegisterAssemblies(IHostEnvironment environment)
        {
            // ensure all the assemblies in the Microsoft.ML package have been loaded
            if (!_assemblyInitializer.IsValueCreated)
            {
                _ = _assemblyInitializer.Value;
                Contracts.Assert(_assemblyInitializer.Value);
            }

#pragma warning disable CS0618 // The legacy API that internally uses dependency injection for all calls will be deleted anyway.
            AssemblyLoadingUtils.RegisterCurrentLoadedAssemblies(environment);
#pragma warning restore CS0618
        }