static void Main(string[] args)
        {
            ModelData modelData = new ModelData()
            {
                DataPath  = dataPath,
                ModelPath = modelPath,
                InitialWeightsDiameter = 0.47f,
                LearningRate           = 0.01f,
                L2Regularization       = 0.01f,
                NumberOfIterations     = 50
            };

            ModelProvider provider = new ModelProvider(modelData);

            provider.Create();
            PredictionService.ShowPredictResults(dataPath, modelPath, predictDataSheetNumber);
        }
Exemple #2
0
        /// <summary>
        /// Constructor used to create a new model for edit
        /// </summary>
        /// <param name="storageType"></param>
        /// <param name="ifcVersion"></param>
        /// <param name="editorDetails"></param>
        protected IfcStore(XbimStoreType storageType, XbimSchemaVersion ifcVersion, XbimEditorCredentials editorDetails) : this()
        {
            var model = ModelProvider.Create(ifcVersion, storageType);

            AssignModel(model, editorDetails, ifcVersion);
        }
Exemple #3
0
        /// <summary>
        /// Constructor used to create a new persistent model with specified path
        /// </summary>
        /// <param name="filepath"></param>
        /// <param name="ifcVersion"></param>
        /// <param name="editorDetails"></param>
        protected IfcStore(string filepath, XbimSchemaVersion ifcVersion, XbimEditorCredentials editorDetails) : this()
        {
            var model = ModelProvider.Create(ifcVersion, filepath);

            AssignModel(model, editorDetails, ifcVersion);
        }