/// <summary> /// Main constructor. /// Initializes the API with specified internally managed context and persistence provider. /// </summary> /// <param name="desc">Describes the data and features.</param> public LearningApi(DataDescriptor desc = null, IModelPersistenceProvider persistenceProvider = null) { this.Context = new Context() { DataDescriptor = desc }; this.Modules = new Dictionary <string, LearningFoundation.IPipelineModule>(); if (persistenceProvider == null) { this.m_PersistenceProvider = new JsonPersistenceProvider(); } }