diff --git a/SharpLearning.sln b/SharpLearning.sln index b278f109..3dce8859 100644 --- a/SharpLearning.sln +++ b/SharpLearning.sln @@ -1,7 +1,7 @@  Microsoft Visual Studio Solution File, Format Version 12.00 -# Visual Studio 15 -VisualStudioVersion = 15.0.26730.3 +# Visual Studio Version 16 +VisualStudioVersion = 16.0.29709.97 MinimumVisualStudioVersion = 10.0.40219.1 Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "SharpLearning.InputOutput.Test", "src\SharpLearning.InputOutput.Test\SharpLearning.InputOutput.Test.csproj", "{9B29211D-9211-4C36-872D-5747D6C51878}" EndProject @@ -65,6 +65,8 @@ Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "SharpLearning.XGBoost", "sr EndProject Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "SharpLearning.XGBoost.Test", "src\SharpLearning.XGBoost.Test\SharpLearning.XGBoost.Test.csproj", "{FFD79827-ED40-47EB-9CB8-2E683DEA3606}" EndProject +Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "SharpLearning.Onnx.Test", "src\SharpLearning.Onnx.Test\SharpLearning.Onnx.Test.csproj", "{C5F63584-1CC0-4805-A8A8-BE71017A9293}" +EndProject Global GlobalSection(SolutionConfigurationPlatforms) = preSolution Debug|Any CPU = Debug|Any CPU @@ -179,6 +181,10 @@ Global {FFD79827-ED40-47EB-9CB8-2E683DEA3606}.Debug|Any CPU.Build.0 = Debug|Any CPU {FFD79827-ED40-47EB-9CB8-2E683DEA3606}.Release|Any CPU.ActiveCfg = Release|Any CPU {FFD79827-ED40-47EB-9CB8-2E683DEA3606}.Release|Any CPU.Build.0 = Release|Any CPU + {C5F63584-1CC0-4805-A8A8-BE71017A9293}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {C5F63584-1CC0-4805-A8A8-BE71017A9293}.Debug|Any CPU.Build.0 = Debug|Any CPU + {C5F63584-1CC0-4805-A8A8-BE71017A9293}.Release|Any CPU.ActiveCfg = Release|Any CPU + {C5F63584-1CC0-4805-A8A8-BE71017A9293}.Release|Any CPU.Build.0 = Release|Any CPU EndGlobalSection GlobalSection(SolutionProperties) = preSolution HideSolutionNode = FALSE diff --git a/src/SharpLearning.Onnx.Test/OnnxConversionTest.cs b/src/SharpLearning.Onnx.Test/OnnxConversionTest.cs new file mode 100644 index 00000000..b8e2def5 --- /dev/null +++ b/src/SharpLearning.Onnx.Test/OnnxConversionTest.cs @@ -0,0 +1,23 @@ +using System; +using Microsoft.VisualStudio.TestTools.UnitTesting; + +namespace SharpLearning.Onnx +{ + /// + /// Resources: + /// ONNX Schema: https://github.com/onnx/onnx/blob/da13be2d8494b99807bd1f071b40c40cc6b6d1cd/onnx/defs/traditionalml/defs.cc#L872 + /// ONNX Conversion ML.Net: https://github.com/dotnet/machinelearning/blob/master/src/Microsoft.ML.FastTree/FastTree.cs#L3030 + /// ONNX Conversion SKLearn: https://github.com/onnx/sklearn-onnx/blob/master/skl2onnx/common/tree_ensemble.py + /// ONNX Conversion SKLearn: https://github.com/onnx/sklearn-onnx/blob/master/skl2onnx/operator_converters/decision_tree.py + /// ONNX Conversion SKLearn: https://github.com/onnx/sklearn-onnx/blob/master/skl2onnx/operator_converters/random_forest.py + /// + [TestClass] + public class OnnxConversionTest + { + [TestMethod] + public void MyTestMethod() + { + + } + } +} diff --git a/src/SharpLearning.Onnx.Test/SharpLearning.Onnx.Test.csproj b/src/SharpLearning.Onnx.Test/SharpLearning.Onnx.Test.csproj new file mode 100644 index 00000000..0461da02 --- /dev/null +++ b/src/SharpLearning.Onnx.Test/SharpLearning.Onnx.Test.csproj @@ -0,0 +1,27 @@ + + + + true + + + + netcoreapp2.0 + + false + + + + ..\..\BuildTest\Release\ + + + + ..\..\BuildTest\Debug\ + + + + + + + + +