Пример #1
0
        public UploadOneModelFixture(OsdrTestHarness harness)
        {
            BlobId = harness.JohnBlobStorageClient.AddResource(harness.JohnId.ToString(), "Bernoulli_Naive_Bayes_with_isotonic_class_weights.sav",
                                                               new Dictionary <string, object>()
            {
                { "parentId", harness.JohnId },
                { "FileType", "MachineLearningModel" },
                { "ModelInfo", new Dictionary <string, object>()
                  {
                      //{"Dataset", new Dataset("title", "description")},
                      //{"Property", new Property("category", "name", "units", "description") },
                      { "ModelName", "Some model name" },
                      { "Method", "NaiveBayes" },
                      { "MethodDisplayName", "Naive Bayes" },
                      { "ClassName", "Soluble" },
                      { "TestDatasetSize", 0.2 },
                      { "KFold", 4 },
                      { "Scaler", "scaler" },
                      //{"Fingerprints", new List<Fingerprint>(){ new Fingerprint { Type = "ecfp", Size = 1024, Radius = 3} } }
                  } }
            }).Result;

            ModelId = harness.WaitWhileModelUploaded(BlobId);
        }