@frontlinesystems/rason-mcp-server 2026.5.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +35 -0
- package/README.md +282 -0
- package/examples/EXAMPLES_REFERENCE.md +128 -0
- package/examples/Optimization/Conic/AirlineHubConic.json +112 -0
- package/examples/Optimization/Conic/AirlineHubConic2.json +109 -0
- package/examples/Optimization/Conic/AirlineHubConic3.json +112 -0
- package/examples/Optimization/Conic/AirlineHubConic4.json +100 -0
- package/examples/Optimization/Conic/AirlineHubConic5.json +102 -0
- package/examples/Optimization/DataBinding/ProductMixCsv.json +82 -0
- package/examples/Optimization/DataBinding/ProductMixCsv4.json +96 -0
- package/examples/Optimization/DataBinding/ProductMixExcel.json +74 -0
- package/examples/Optimization/DataBinding/ProductMixExcel1.json +87 -0
- package/examples/Optimization/DataBinding/ProductMixExcel11.json +109 -0
- package/examples/Optimization/DataBinding/ProductMixExcel2.json +78 -0
- package/examples/Optimization/DataBinding/ProductMixTab.json +90 -0
- package/examples/Optimization/DataBinding/ProductMixTab1.json +74 -0
- package/examples/Optimization/DataBinding/ProductMixTab2.json +78 -0
- package/examples/Optimization/Linear/Inventory.json +200 -0
- package/examples/Optimization/Linear/Matop.json +120 -0
- package/examples/Optimization/Linear/ProductMix.json +98 -0
- package/examples/Optimization/Linear/ProductMix2.json +73 -0
- package/examples/Optimization/Linear/ProductMix3.json +50 -0
- package/examples/Optimization/Linear/ProductMix4.json +57 -0
- package/examples/Optimization/Linear/ProductMixCsv1.json +106 -0
- package/examples/Optimization/Linear/ProductMixCsv2.json +106 -0
- package/examples/Optimization/Linear/ProductMixSQL11.json +82 -0
- package/examples/Optimization/Linear/Rowop.json +127 -0
- package/examples/Optimization/NonLinear/AirlineHub.json +64 -0
- package/examples/Optimization/NonLinear/AirlineHub2.json +48 -0
- package/examples/Optimization/NonLinear/AirlineHub3.json +48 -0
- package/examples/Optimization/NonSmooth/Inventory2.json +160 -0
- package/examples/Optimization/Quadratic/PortfolioOpt.json +56 -0
- package/examples/Optimization/Quadratic/PortfolioOpt2.json +66 -0
- package/examples/Optimization/WithUncertainty/GasCompanyChance.json +79 -0
- package/examples/Optimization/WithUncertainty/GasCompanyRecourse.json +79 -0
- package/examples/Optimization/WithUncertainty/ProjectSelect.json +78 -0
- package/examples/Optimization/WithUncertainty/ProjectSelect2.json +82 -0
- package/examples/Optimization/WithUncertainty/ProjectSelect3.json +85 -0
- package/examples/Optimization/WithUncertainty/ProjectSelect4.json +75 -0
- package/examples/Simulation/CandyStoreSalesUsingSIP.json +148 -0
- package/examples/Simulation/CollegeFundGrowth1.json +424 -0
- package/examples/Simulation/CollegeFundGrowth1SIPModel.json +28 -0
- package/examples/Simulation/CollegeFundGrowth2.json +416 -0
- package/examples/Simulation/CollegeFundGrowthSIP.json +402 -0
- package/examples/Simulation/GBMSimulationModel.json +237 -0
- package/examples/Simulation/YieldManagement(Sim).json +70 -0
- package/examples/Simulation/YieldManagement2(Sim).json +73 -0
- package/examples/calculation/DMNExamples/DMN Box Fun with typeDef result.json +54 -0
- package/examples/calculation/DMNExamples/DMN Context example.json +69 -0
- package/examples/calculation/DMNExamples/DMN DT with typeDef result.json +43 -0
- package/examples/calculation/DMNExamples/FEEL Date Time example.json +28 -0
- package/examples/calculation/DMNExamples/FEEL For iteration example.json +66 -0
- package/examples/calculation/DMNExamples/FEEL For with two indices.json +16 -0
- package/examples/calculation/DMNExamples/FEEL For with typeDef result.json +88 -0
- package/examples/calculation/DMNExamples/FEEL If Then Else example.json +26 -0
- package/examples/calculation/DMNExamples/FEEL List example.json +38 -0
- package/examples/calculation/DMNExamples/FEEL List operator.json +17 -0
- package/examples/calculation/DMNExamples/FEEL List with typeDef collection.json +37 -0
- package/examples/calculation/DMNExamples/FEEL Some or Every example.json +66 -0
- package/examples/calculation/DecisionTables/DT Datasource example.json +53 -0
- package/examples/calculation/DecisionTables/DT Date and Time examples.json +92 -0
- package/examples/calculation/DecisionTables/DT Expression example.json +32 -0
- package/examples/calculation/DecisionTables/DT Hit Policy examples.json +137 -0
- package/examples/calculation/DecisionTables/DT Loan Recommend model.json +82 -0
- package/examples/calculation/DecisionTables/DT Loan Strategy Model and Predictive CSV-XML.json +219 -0
- package/examples/calculation/DecisionTables/DT Loan Strategy model and Datasource.json +286 -0
- package/examples/calculation/DecisionTables/DT Loan Strategy model and Predictive.json +204 -0
- package/examples/calculation/DecisionTables/DT Loan Strategy model by scratch.json +214 -0
- package/examples/calculation/DecisionTables/DT Output Order example.json +40 -0
- package/examples/calculation/DecisionTables/DT Unique example.json +39 -0
- package/examples/calculation/TypeDefinitions/TypeDefCF.json +65 -0
- package/examples/calculation/TypeDefinitions/TypeDefDT.json +58 -0
- package/examples/datamining/AffinityAnalysis/AssociationRules.json +52 -0
- package/examples/datamining/Classification/DecisionTree.json +91 -0
- package/examples/datamining/Classification/DiscriminantAnalysis.json +82 -0
- package/examples/datamining/Classification/Ensembles/Bagging.json +67 -0
- package/examples/datamining/Classification/Ensembles/Boosting.json +68 -0
- package/examples/datamining/Classification/Ensembles/RandomTrees.json +92 -0
- package/examples/datamining/Classification/FindBestModel.json +87 -0
- package/examples/datamining/Classification/LogisticRegression.json +83 -0
- package/examples/datamining/Classification/NaiveBayes.json +79 -0
- package/examples/datamining/Classification/NearestNeighbors.json +85 -0
- package/examples/datamining/Classification/NeuralNetwork.json +93 -0
- package/examples/datamining/Clustering/Hierarchical.json +55 -0
- package/examples/datamining/Clustering/KMeans.json +72 -0
- package/examples/datamining/DataSources/DelimitedFile.json +50 -0
- package/examples/datamining/DataSources/JSONFile.json +50 -0
- package/examples/datamining/DataSources/MSAccessDatabase.json +50 -0
- package/examples/datamining/DataSources/MSExcelTable.json +51 -0
- package/examples/datamining/DataSources/MSSQLDatabase.json +50 -0
- package/examples/datamining/DataSources/ODATATable.json +50 -0
- package/examples/datamining/DataSources/ODBCDatabase.json +50 -0
- package/examples/datamining/FeatureSelection/LinearWrapping.json +54 -0
- package/examples/datamining/FeatureSelection/LogisticWrapping.json +57 -0
- package/examples/datamining/FeatureSelection/Univariate.json +79 -0
- package/examples/datamining/Regression/DecisionTree.json +82 -0
- package/examples/datamining/Regression/Ensembles/Bagging.json +63 -0
- package/examples/datamining/Regression/Ensembles/Boosting.json +63 -0
- package/examples/datamining/Regression/Ensembles/RandomTrees.json +79 -0
- package/examples/datamining/Regression/FindBestModel.json +87 -0
- package/examples/datamining/Regression/LinearRegression.json +125 -0
- package/examples/datamining/Regression/NearestNeighbors.json +78 -0
- package/examples/datamining/Regression/NeuralNetwork.json +83 -0
- package/examples/datamining/Scoring/JSONClassifier.json +63 -0
- package/examples/datamining/Scoring/JSONClassifierNN.json +63 -0
- package/examples/datamining/Scoring/JSONClusterizer.json +38 -0
- package/examples/datamining/Scoring/JSONForecaster.json +50 -0
- package/examples/datamining/Scoring/JSONLinearRegression.json +57 -0
- package/examples/datamining/Scoring/JSONPCA.json +42 -0
- package/examples/datamining/Scoring/JSONRegressor.json +57 -0
- package/examples/datamining/Scoring/JSONTransformer.json +39 -0
- package/examples/datamining/Scoring/PMMLClassifier.json +43 -0
- package/examples/datamining/Scoring/PMMLForecaster.json +44 -0
- package/examples/datamining/Scoring/PMMLRegressor.json +39 -0
- package/examples/datamining/Scoring/PMMLTransformer.json +39 -0
- package/examples/datamining/Simulation/LinearRegressionSimulation.json +118 -0
- package/examples/datamining/Simulation/SyntheticDataGeneration.json +109 -0
- package/examples/datamining/Simulation/pmml-risk-scoring.json +63 -0
- package/examples/datamining/Summarizer/Summarization.json +55 -0
- package/examples/datamining/TextMining/LatentSemanticAnalysis.json +52 -0
- package/examples/datamining/TextMining/TfIdf-FileData.json +66 -0
- package/examples/datamining/TextMining/TfIdf-InlineData.json +56 -0
- package/examples/datamining/TimeSeries/AddHoltWinters.json +80 -0
- package/examples/datamining/TimeSeries/Arima.json +75 -0
- package/examples/datamining/TimeSeries/DoubleExponential.json +66 -0
- package/examples/datamining/TimeSeries/Exponential.json +65 -0
- package/examples/datamining/TimeSeries/LagAnalysis.json +49 -0
- package/examples/datamining/TimeSeries/MovingAverage.json +66 -0
- package/examples/datamining/TimeSeries/MulHoltWinters.json +66 -0
- package/examples/datamining/TimeSeries/NoTrendHoltWinters.json +66 -0
- package/examples/datamining/Transformation/Binning.json +70 -0
- package/examples/datamining/Transformation/CanonicalVariateAnalysis.json +48 -0
- package/examples/datamining/Transformation/CategoryReduction.json +52 -0
- package/examples/datamining/Transformation/Factorization.json +51 -0
- package/examples/datamining/Transformation/MissingDataHandling.json +84 -0
- package/examples/datamining/Transformation/OneHotEncoding-DataInline.json +55 -0
- package/examples/datamining/Transformation/OneHotEncoding-DatainFile.json +49 -0
- package/examples/datamining/Transformation/PartitionTimeSeries.json +49 -0
- package/examples/datamining/Transformation/Partitioning-DF.json +73 -0
- package/examples/datamining/Transformation/Partitioning.json +47 -0
- package/examples/datamining/Transformation/PartitioningWithOversampling-DF.json +66 -0
- package/examples/datamining/Transformation/PartitioningWithOversampling.json +45 -0
- package/examples/datamining/Transformation/PrincipalComponentsAnalysis.json +53 -0
- package/examples/datamining/Transformation/Rescaling.json +68 -0
- package/examples/datamining/Transformation/Sampling.json +44 -0
- package/examples/datamining/Transformation/StratifiedSampling.json +47 -0
- package/examples/flow/SQLServerTransform.json +261 -0
- package/examples/flow/dm-calc-pipeline.json +278 -0
- package/examples/flow/dm-pipeline-simulation.json +114 -0
- package/examples/flow/opt-sim-pipeline.json +160 -0
- package/examples/flow/sim-dm-pipeline.json +107 -0
- package/examples/flow/sim-sim-pipeline.json +137 -0
- package/examples/index.json +4679 -0
- package/examples/rason-features/Arrays_Loops_Tables/ArrayExamples/DataFiltering/ListwithFilter.json +53 -0
- package/examples/rason-features/Arrays_Loops_Tables/ArrayExamples/Loops/ProductMix5.json +58 -0
- package/examples/rason-features/Arrays_Loops_Tables/ArrayExamples/Loops/compoundWhileStatement.json +36 -0
- package/examples/rason-features/Arrays_Loops_Tables/ArrayExamples/Loops/ifThenElseStatement.json +34 -0
- package/examples/rason-features/Arrays_Loops_Tables/ArrayExamples/Loops/nestedLoop.json +26 -0
- package/examples/rason-features/Arrays_Loops_Tables/ArrayExamples/ParallelArray.json +48 -0
- package/examples/rason-features/Arrays_Loops_Tables/ArrayExamples/indexedArray.json +70 -0
- package/examples/rason-features/Arrays_Loops_Tables/ArrayExamples/nonParallelArray.json +50 -0
- package/examples/rason-features/Arrays_Loops_Tables/ArrayExamples/sumAggregateExample.json +338 -0
- package/examples/rason-features/Arrays_Loops_Tables/ArrayExamples/tsp.json +62 -0
- package/examples/rason-features/BoxIterators/Box_Fun_Loop_Iter_Sim_RASON.json +191 -0
- package/examples/rason-features/BoxIterators/Box_Fun_Loop_Sim_RASON.json +76 -0
- package/examples/rason-features/BoxIterators/Box_Fun_Sim_RASON.json +109 -0
- package/examples/rason-features/BoxIterators/Box_Iter_SIM_RASON.json +69 -0
- package/examples/rason-features/BoxIterators/Box_Iterator_Calc_Loop.json +183 -0
- package/examples/rason-features/BoxIterators/Box_Iterator_with_typeDef_partial.json +79 -0
- package/examples/rason-features/BoxLambdaExamples/BoxFunOptimize.json +155 -0
- package/examples/rason-features/BoxLambdaExamples/BoxFunSimulate.json +119 -0
- package/examples/rason-features/BoxLambdaExamples/LambdaFunOptimize.json +143 -0
- package/examples/rason-features/BoxLambdaExamples/LambdaFunSimulate.json +82 -0
- package/examples/rason-features/ReferenceGuide/RGFirehouseLocation.json +69 -0
- package/examples/rason-features/ReferenceGuide/RGFirehouseLocationConic.json +114 -0
- package/examples/rason-features/ReferenceGuide/RGProductMixCsv1.json +108 -0
- package/examples/rason-features/ReferenceGuide/RGProductMixExcel11.json +117 -0
- package/examples/rason-features/ReferenceGuide/RGProductMixSQL11.json +108 -0
- package/examples/rason-features/UserGuide/UGAirlineHubCSV.json +67 -0
- package/examples/rason-features/UserGuide/UGForecast.json +51 -0
- package/examples/rason-features/UserGuide/UGProductMix1.json +49 -0
- package/examples/rason-features/UserGuide/UGProductMix2.json +49 -0
- package/examples/rason-features/UserGuide/UGProductMixTab1.json +68 -0
- package/examples/rason-features/UserGuide/UGProductMixTab2.json +77 -0
- package/examples/rason-features/UserGuide/UGProductMixTab3.json +67 -0
- package/examples/rason-features/UserGuide/UGProductMixTab4.json +71 -0
- package/examples/rason-features/UserGuide/UGProductMixTab5.json +68 -0
- package/examples/rason-features/UserGuide/UGProjectSelect0.json +92 -0
- package/examples/rason-features/UserGuide/UGProjectSelect1.json +75 -0
- package/examples/rason-features/UserGuide/UGProjectSelect2.json +75 -0
- package/examples/rason-features/UserGuide/UGYieldManagement1.json +62 -0
- package/examples/rason-features/UserGuide/UGYieldManagement2.json +62 -0
- package/examples/rason-features/UserGuide/UGYieldManagement3.json +64 -0
- package/out/index.cjs +361 -0
- package/package.json +76 -0
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
{
|
|
2
|
+
"modelName": "CategoryReduction",
|
|
3
|
+
"modelDescription": "Transformation RASON model example that performs category reduction on an imported data source. This datasource can be downloaded by clicking the Download RASON Example Files icon (download icon) on the ribbon. To attach the source file to the example, click Choose Files (on the Properties tab on the right), navigate to the location of the downloaded files, select hald-small.txt and click Open. Then click the POST icon (upload icon) to POST the model to the RASON Server, then click the down arrow next to the Play icon and select Solve to solve the model.",
|
|
4
|
+
"modelType": "datamining",
|
|
5
|
+
"datasources": {
|
|
6
|
+
"comment": "Imports data source, hald-small.txt, downloadable by clicking Download RASON example data icon, on the ribbon",
|
|
7
|
+
"mySrc": {
|
|
8
|
+
"comment": "Binds the hald-small.txt source file to the mySrc datasource.",
|
|
9
|
+
"type": "csv",
|
|
10
|
+
"connection": "hald-small.txt",
|
|
11
|
+
"direction": "import"
|
|
12
|
+
}
|
|
13
|
+
},
|
|
14
|
+
"datasets": {
|
|
15
|
+
"comment": "Datasets are bound to an entry in the datasources section",
|
|
16
|
+
"myData": {
|
|
17
|
+
"comment": "Binds mySrc datasource (hald-small.txt) to myData data set.",
|
|
18
|
+
"binding": "mySrc"
|
|
19
|
+
}
|
|
20
|
+
},
|
|
21
|
+
"transformer": {
|
|
22
|
+
"comment": "Defines a transformer, including the type, algorithm and parameters. Only 1 estimator/transformer may appear in a RASON model.",
|
|
23
|
+
"myReducer": {
|
|
24
|
+
"comment": "Defines the myReducer as a category reduction transformer. The number of categories are set for the X1 and X3 variables within parameters. For a complete list of all algorithm options, see the RASON Data Mining Components chapter in the RASON Reference Guide. (Click the Help tab to download.)",
|
|
25
|
+
"type": "transformation",
|
|
26
|
+
"algorithm": "categoryReduction",
|
|
27
|
+
"parameters": {
|
|
28
|
+
"numCategories": [
|
|
29
|
+
[ "X1", 3 ],
|
|
30
|
+
[ "X3", 2 ]
|
|
31
|
+
]
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
},
|
|
35
|
+
"actions": {
|
|
36
|
+
"comment": "Define actions, evaluations, and data to be used by the transformer created above.",
|
|
37
|
+
"redModel": {
|
|
38
|
+
"comment": "Fits a category reduction model (using 'action':'fit') to the myData dataset ('data':'myData') using myReducer ('estimator':'myReducer'). See the RASON Reference Guide (click the Help tab to download) for a list of all supported category reduction parameters.",
|
|
39
|
+
"data": "myData",
|
|
40
|
+
"estimator": "myReducer",
|
|
41
|
+
"export": "json",
|
|
42
|
+
"action": "fit"
|
|
43
|
+
},
|
|
44
|
+
"reducedData": {
|
|
45
|
+
"comment": "Applies the fitted model (using 'action':'transform') to the myData dataset ('data':'myData') using the fitted category reduction model, redModel ('fittedModel':'redModel'). The only evaluation requested is the transformed data.",
|
|
46
|
+
"data": "myData",
|
|
47
|
+
"fittedModel": "redModel",
|
|
48
|
+
"action": "transform",
|
|
49
|
+
"evaluations": [ "transformation" ]
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
}
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
{
|
|
2
|
+
"modelName": "Factorization",
|
|
3
|
+
"modelDescription": "Transformation RASON model example that performs factorization (category scores in Analytic Solver Data Mining) on an imported data source. This datasource can be downloaded by clicking the Download RASON Example Files icon (download icon) on the ribbon. To attach the source file to the example, click Choose Files (on the Properties tab on the right), navigate to the location of the downloaded files, select hald-small.txt and click Open. Then click the POST icon (upload icon) to POST the model to the RASON Server, then click the down arrow next to the Play icon and select Solve to solve the model.",
|
|
4
|
+
"modelType": "datamining",
|
|
5
|
+
"datasources": {
|
|
6
|
+
"comment": "Define datasources to use with this model. Typically these bind to external data sources due to data volume.",
|
|
7
|
+
"mySrc": {
|
|
8
|
+
"type": "csv",
|
|
9
|
+
"connection": "hald-small.txt",
|
|
10
|
+
"direction": "import"
|
|
11
|
+
}
|
|
12
|
+
},
|
|
13
|
+
"datasets": {
|
|
14
|
+
"comment": "Binds mySrc (hald-small.txt) datasource to myData dataset",
|
|
15
|
+
"myData": {
|
|
16
|
+
"comment": "Imports hald-small.txt datasource, downloadable by clicking Download RASON example data, on the ribbon",
|
|
17
|
+
"binding": "mySrc"
|
|
18
|
+
}
|
|
19
|
+
},
|
|
20
|
+
"estimator": {
|
|
21
|
+
"comment": "Defines an estimator, including the type, algorithm and parameters. Only 1 estimator/transformer may appear in a RASON model.",
|
|
22
|
+
"factorEstimator": {
|
|
23
|
+
"comment": "Defines factorEstimator as a factorization estimator. The base Index parameter is used to set the base index for the x1 and x3 variables. For a complete list of all algorithm options, see the RASON Data Mining Components chapter in the RASON Reference Guide. (Click the Help tab to download.)",
|
|
24
|
+
"type": "transformation",
|
|
25
|
+
"algorithm": "factorization",
|
|
26
|
+
"parameters": {
|
|
27
|
+
"baseIndex": [
|
|
28
|
+
[ "X1", 1 ],
|
|
29
|
+
[ "X3", 5 ]
|
|
30
|
+
]
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
},
|
|
34
|
+
"actions": {
|
|
35
|
+
"comment": "Define actions, evaluations, and data to be used by the estimator created above.",
|
|
36
|
+
"factorModel": {
|
|
37
|
+
"comment": "Fits a factorization model (using 'action':'fit') to the myData dataset ('data':'myData') using factorEstimator ('estimator':'factorEstimator'). The property export:json posts the fitted model to the RASON server. See the RASON Reference Guide (click the Help tab to download) for a list of all supported factorization parameters.",
|
|
38
|
+
"data": "myData",
|
|
39
|
+
"estimator": "factorEstimator",
|
|
40
|
+
"export": "json",
|
|
41
|
+
"action": "fit"
|
|
42
|
+
},
|
|
43
|
+
"factorizedData": {
|
|
44
|
+
"comment": "Applies the fitted model (using 'action':'transform') to the myData dataset ('data':'myData') using the factorization model, factorModel ('fittedModel':'factorModel'). Two evaluations are requested: transformation (which returns the transformed dataset) and the frequency table.",
|
|
45
|
+
"data": "myData",
|
|
46
|
+
"fittedModel": "factorModel",
|
|
47
|
+
"action": "transform",
|
|
48
|
+
"evaluations": [ "transformation", "frequencyTable" ]
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
}
|
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
{
|
|
2
|
+
"modelName": "MissingDataHandling",
|
|
3
|
+
"modelDescription": "Transformation RASON model example that performs imputation (or missing data handling). Click the POST icon (upload icon) to POST the model to the RASON Server, then click the down arrow next to the Play icon and select Solve to solve the model.",
|
|
4
|
+
"modelType": "datamining",
|
|
5
|
+
"datasets": {
|
|
6
|
+
"comment": "Data is provided inline so no need for the datasource section.",
|
|
7
|
+
"trainData": {
|
|
8
|
+
"comment": "Represents the training partition. The colNames property provides the column headings for the data passed for value.",
|
|
9
|
+
"value": [
|
|
10
|
+
[ "black", null, 6.0, 2.0, 1.0, "nan", 1 ],
|
|
11
|
+
[ "", 3.0, 9.0, 5.1, null, "", 2 ],
|
|
12
|
+
[ "red", 7.0, 8.0, null, 9.2, "small", 3 ],
|
|
13
|
+
[ "red", 10000.0, null, 4.4, 4.4, "large", -1 ],
|
|
14
|
+
[ "blue", 2, 3, 5.6, 3.4, "unknown", 5 ]
|
|
15
|
+
],
|
|
16
|
+
"colNames": [ "A", "B", "C", "D", "E", "F", "G" ]
|
|
17
|
+
},
|
|
18
|
+
"newData": {
|
|
19
|
+
"comment": "Represents new data. The colNames property provides the column headings for the data passed for value.",
|
|
20
|
+
"value": [
|
|
21
|
+
[ "blue", null, null, 4.0, 1.0, "unknown", -1 ]
|
|
22
|
+
],
|
|
23
|
+
"colNames": [ "A", "B", "C", "D", "E", "F", "G" ]
|
|
24
|
+
}
|
|
25
|
+
},
|
|
26
|
+
"estimator": {
|
|
27
|
+
"comment": "Defines an estimator, including the type, algorithm and parameters. Only 1 estimator/transformer may appear in a RASON model.",
|
|
28
|
+
"myImputer": {
|
|
29
|
+
"comment": "Defines myImputer as a imputation (missing data handling) estimator. The imputation strategies for each column (variable) are set using the imputationStrategy parameter. The placeholder parameter sets the custom placeholder for missing values in a column. For example, if a missing value is found in the A column, the mode of the column will be inserted for the missing value, if a value of 10000.0 is found in the B column, the mean of the column will replace the 10000.0 vaue, if a missing value is found in the C column, the column median will be inserted for the missing value, if a missing value is found in the D or E columns, the record will be deleted, if a missing value is found in the F column, a user defined value will be entered, if a missing value is found in the G column, the column mean will be inserted for the missing value. See the imputation model parameter for the user defined value for the F column (i.e. see the parameter for fixedTrainData within actions, below. For a complete list of all algorithm options, see the RASON Data Mining Components chapter in the RASON Reference Guide. (Click the Help tab to download.)",
|
|
30
|
+
"type": "transformation",
|
|
31
|
+
"algorithm": "imputation",
|
|
32
|
+
"parameters": {
|
|
33
|
+
"imputationStrategy": [
|
|
34
|
+
[ "A", "MODE" ],
|
|
35
|
+
[ "B", "MEAN" ],
|
|
36
|
+
[ "C", "MEDIAN" ],
|
|
37
|
+
[ "D", "DELETE_RECORD" ],
|
|
38
|
+
[ "E", "DELETE_RECORD" ],
|
|
39
|
+
[ "F", "VALUE" ],
|
|
40
|
+
[ "G", "MEAN" ]
|
|
41
|
+
],
|
|
42
|
+
"placeholder": [
|
|
43
|
+
[ "B", 10000.0 ],
|
|
44
|
+
[ "F", "unknown" ],
|
|
45
|
+
[ "G", -1 ]
|
|
46
|
+
]
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
},
|
|
50
|
+
"actions": {
|
|
51
|
+
"comment": "Define actions, evaluations, and data to be used by the estimator created above.",
|
|
52
|
+
"imputingModel": {
|
|
53
|
+
"comment": "Fits an imputation model (using 'action':'fit') to the myData dataset ('data':'myData') using myImputer ('estimator':'myImputer'). The property export:json posts the fitted model to the RASON server using the same name as this example. See the RASON Reference Guide (click the Help tab to download) for a list of all supported factorization parameters.",
|
|
54
|
+
"data": "trainData",
|
|
55
|
+
"estimator": "myImputer",
|
|
56
|
+
"action": "fit",
|
|
57
|
+
"export": "json"
|
|
58
|
+
},
|
|
59
|
+
"fixedTrainData": {
|
|
60
|
+
"comment": "Applies the fitted model (using 'action':'transform') to the myData dataset ('data':'myData') using the imputation model, imputingModel ('fittedModel':'imputingModel'). The imputation model parameter specifies the user defined value to be inserted for a missing value in the F column. Three evaluations are requested: transformation, the dataset with imputation applied, the records with missing values and the records to delete. See the JSON results for the results of recordswithMissingValues and recordsToDelete (i.e. click Show JSON results in the upper right hand coner of the ODATA results viewer.)",
|
|
61
|
+
"data": "trainData",
|
|
62
|
+
"fittedModel": "imputingModel",
|
|
63
|
+
"action": "transform",
|
|
64
|
+
"parameters": {
|
|
65
|
+
"imputation": [
|
|
66
|
+
[ "F", "medium" ]
|
|
67
|
+
]
|
|
68
|
+
},
|
|
69
|
+
"evaluations": [ "transformation", "recordsWithMissingValues", "recordsToDelete" ]
|
|
70
|
+
},
|
|
71
|
+
"fixedNewData": {
|
|
72
|
+
"comment": "Applies the fitted model (using 'action':'transform') to the newData dataset ('data':'newData') using the imputation model, imputingModel ('fittedModel':'imputigModel'). Three evaluations are requested: transformation (which returns the transformed data), records with Missing Values and the deleted records. See the JSON results for the results of recordswithMissingValues and recordsToDelete (i.e. click Show JSON results in the upper right hand coner of the ODATA results viewer.)",
|
|
73
|
+
"data": "newData",
|
|
74
|
+
"fittedModel": "imputingModel",
|
|
75
|
+
"action": "transform",
|
|
76
|
+
"parameters": {
|
|
77
|
+
"imputation": [
|
|
78
|
+
[ "C", 7.5 ]
|
|
79
|
+
]
|
|
80
|
+
},
|
|
81
|
+
"evaluations": [ "transformation", "recordsWithMissingValues", "recordsToDelete" ]
|
|
82
|
+
}
|
|
83
|
+
}
|
|
84
|
+
}
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
{
|
|
2
|
+
"modelName": "OneHotEncodingInlineData",
|
|
3
|
+
"modelDescription": "Transformation RASON model example that performs one-hot encoding (Create Dummies in Analytic Solver). In this example, the data is supplied inline. Click the POST icon (upload icon) to POST the model to the RASON Server, then click the down arrow next to the Play icon and select Solve to solve the model.",
|
|
4
|
+
"modelType": "datamining",
|
|
5
|
+
"datasets": {
|
|
6
|
+
"comment": "Binds the data supplied in the example to the 2 different datasets: trainData and newData.",
|
|
7
|
+
"trainData": {
|
|
8
|
+
"comment": "Binds the data to the trainData dataset.",
|
|
9
|
+
"value": [
|
|
10
|
+
[ "1", 2.0 ],
|
|
11
|
+
[ "0", 3.0 ],
|
|
12
|
+
[ "1", 6.0 ]
|
|
13
|
+
]
|
|
14
|
+
},
|
|
15
|
+
"newData": {
|
|
16
|
+
"comment": "Binds the data to the newData dataset.",
|
|
17
|
+
"value": [
|
|
18
|
+
[ "0", 3.0 ],
|
|
19
|
+
[ "1", 6.0 ],
|
|
20
|
+
[ "1", 6.0 ]
|
|
21
|
+
]
|
|
22
|
+
}
|
|
23
|
+
},
|
|
24
|
+
"estimator": {
|
|
25
|
+
"comment": "Defines an estimator, including the type, algorithm and parameters. Only 1 estimator may appear in a RASON model.",
|
|
26
|
+
"myEncoder": {
|
|
27
|
+
"comment": "Defines myEncoder as a one hot encoder (Create Dummies) estimator. For a complete list of all algorithm options, see the RASON Data Mining Components chapter in the RASON Reference Guide. (Click the Help tab to download.)",
|
|
28
|
+
"type": "transformation",
|
|
29
|
+
"algorithm": "oneHotEncoding"
|
|
30
|
+
}
|
|
31
|
+
},
|
|
32
|
+
"actions": {
|
|
33
|
+
"comment": "Define actions, evaluations, and data to be used by the estimator created above.",
|
|
34
|
+
"encoderModel": {
|
|
35
|
+
"comment": "Fits (using 'action':'fit') a model to the trainData dataset (using 'data':'trainData') using one hot encoder estimator ('estimator':'myEncoder').",
|
|
36
|
+
"trainData": "trainData",
|
|
37
|
+
"estimator": "myEncoder",
|
|
38
|
+
"action": "fit"
|
|
39
|
+
},
|
|
40
|
+
"encodedTrainData": {
|
|
41
|
+
"comment": "Applies the fitted model (using 'action':'transform') to the trainData dataset ('data':'trainData') using the one hot encoding model, encoderModel ('fittedModel':'encoderModel'). The transformed trainData dataset will be returned in the JSON results.",
|
|
42
|
+
"data": "trainData",
|
|
43
|
+
"fittedModel": "encoderModel",
|
|
44
|
+
"action": "transform",
|
|
45
|
+
"evaluations": [ "transformation" ]
|
|
46
|
+
},
|
|
47
|
+
"encodedNewData": {
|
|
48
|
+
"comment": "Applies the fitted model (using 'action':'transform') to the trainData dataset ('data':'newData') using the one hot encoding model, encoderModel ('fittedModel':'encoderModel'). The transformed newData dataset will be returned in the JSON results.",
|
|
49
|
+
"data": "newData",
|
|
50
|
+
"fittedModel": "encoderModel",
|
|
51
|
+
"action": "transform",
|
|
52
|
+
"evaluations": [ "transformation" ]
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
}
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
{
|
|
2
|
+
"modelName": "OneHotEncodingFileData",
|
|
3
|
+
"modelDescription": "Transformation RASON model example that performs one-hot encoding (Create Dummies in Analytic Solver). This example uses an outside data source, hald-small.txt, which can be downloaded by clicking the Download RASON Example Files icon (download icon) on the ribbon. To attach the source file to the example, click Choose Files (on the Properties tab on the right), navigate to the location of the downloaded files, select hald-small.txt and click Open. Click the POST icon (upload icon) to POST the model to the RASON Server, then click the down arrow next to the Play icon and select Solve to solve the model.",
|
|
4
|
+
"modelType": "datamining",
|
|
5
|
+
"datasources": {
|
|
6
|
+
"comment": "Define datasources to use with this model. Typically these bind to external data sources due to data volume.",
|
|
7
|
+
"mySource": {
|
|
8
|
+
"comment": "Imports hald-small.txt as datasource, downloadable by clicking Download RASON example data icon, on the ribbon",
|
|
9
|
+
"type": "csv",
|
|
10
|
+
"connection": "hald-small.txt",
|
|
11
|
+
"direction": "import"
|
|
12
|
+
}
|
|
13
|
+
},
|
|
14
|
+
"datasets": {
|
|
15
|
+
"comment": "Datasets are bound to an entry in the datasources section",
|
|
16
|
+
"myData": {
|
|
17
|
+
"comment": "Binds the mySource datasource (hald-small.txt) to the myData dataset.",
|
|
18
|
+
"binding": "mySource"
|
|
19
|
+
}
|
|
20
|
+
},
|
|
21
|
+
"estimator": {
|
|
22
|
+
"comment": "Defines an estimator, including the type, algorithm and parameters. Only 1 estimator/transformer may appear in a RASON model.",
|
|
23
|
+
"myEncoder": {
|
|
24
|
+
"comment": "Defines myEncoder as a one hot encoder (Create Dummies) estimator; the categorical features are selected using parameters. For a complete list of all algorithm options, see the RASON Data Mining Components chapter in the RASON Reference Guide. (Click the Help tab to download.)",
|
|
25
|
+
"type": "transformation",
|
|
26
|
+
"algorithm": "oneHotEncoding",
|
|
27
|
+
"parameters": {
|
|
28
|
+
"categoricalFeaturesNames": [ "X1", "X2", "X4" ]
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
},
|
|
32
|
+
"actions": {
|
|
33
|
+
"comment": "Define actions, evaluations, and data to be used by the estimator created above.",
|
|
34
|
+
"encoderModel": {
|
|
35
|
+
"comment": "Fits (using 'action':'fit') a model to the myData dataset (using 'data':'myData') using one hot encoder estimator ('estimator':'myEncoder'), POSTS the fitted model (encoderModel) to the RASON Server, in json format, using export:json.",
|
|
36
|
+
"trainData": "myData",
|
|
37
|
+
"estimator": "myEncoder",
|
|
38
|
+
"export": "json",
|
|
39
|
+
"action": "fit"
|
|
40
|
+
},
|
|
41
|
+
"encodedTrainData": {
|
|
42
|
+
"comment": "Applies the fitted model (using 'action':'transform') to the myData dataset ('data':'myData') using the one hot encoding model, encoderModel ('fittedModel':'encoderModel'). The transformed myData dataset will be returned in the results.",
|
|
43
|
+
"data": "myData",
|
|
44
|
+
"fittedModel": "encoderModel",
|
|
45
|
+
"action": "transform",
|
|
46
|
+
"evaluations": [ "transformation" ]
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
}
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
{
|
|
2
|
+
"modelName": "TimeSeriesPartitioning",
|
|
3
|
+
"modelDescription": "Transformation RASON model example that performs partitioning on a time series dataset. This example uses an outside data source, Airpass.txt, which can be downloaded by clicking the Download RASON Example Files icon (download icon) on the ribbon. To attach the source file to the example, click Choose Files (on the Properties tab on the right), navigate to the location of the downloaded files, select airpass.txt and click Open. Click the POST icon (upload icon) to POST the model to the RASON Server, then click the down arrow next to the Play icon and select Solve to solve the model.",
|
|
4
|
+
"modelType": "datamining",
|
|
5
|
+
"datasources": {
|
|
6
|
+
"comment": "Define datasources to use with this model. Typically these bind to external data sources due to data volume.",
|
|
7
|
+
"airpass_src": {
|
|
8
|
+
"comment": "Imports Airpass.txt as datasource, downloadable by clicking Download RASON example data icon, on the ribbon. The property content:time-series considers the 1st column as the time variable and the 2nd column as the value column in the dataframe.",
|
|
9
|
+
"type": "csv",
|
|
10
|
+
"connection": "Airpass.txt",
|
|
11
|
+
"direction": "import",
|
|
12
|
+
"content": "time-series"
|
|
13
|
+
}
|
|
14
|
+
},
|
|
15
|
+
"datasets": {
|
|
16
|
+
"comment": "Datasets are bound to an entry in the datasources section",
|
|
17
|
+
"airpass_dataset": {
|
|
18
|
+
"comment": "SelectedCols optional; use if more than 2 columns in dataset, 1st selected col is the time variable and 2nd selected col is the value column",
|
|
19
|
+
"binding": "airpass_src",
|
|
20
|
+
"selectedCols": [ "Month", "Passengers" ]
|
|
21
|
+
}
|
|
22
|
+
},
|
|
23
|
+
"transformer": {
|
|
24
|
+
"comment": "Defines a transformer, including the type, algorithm and parameters. Only 1 estimator/transformer may appear in a RASON model.",
|
|
25
|
+
"myPartitioner": {
|
|
26
|
+
"comment": "Defines myPartitioner as a time series partitioning transformer. The partitioning ratios and random seed options are set in parameters. Note that in time series partitioning, the records are assigned to different partitions in sequential order. For a complete list of all algorithm options, see the RASON Data Mining Components chapter in the RASON Reference Guide. (Click the Help tab to download.)",
|
|
27
|
+
"type": "transformation",
|
|
28
|
+
"algorithm": "partitioning",
|
|
29
|
+
"parameters": {
|
|
30
|
+
"comment": "Use partitionMethod: Sequential for time series partition",
|
|
31
|
+
"partitionMethod": "SEQUENTIAL",
|
|
32
|
+
"ratios": [
|
|
33
|
+
[ "Training", 0.6 ],
|
|
34
|
+
[ "Validation", 0.4 ]
|
|
35
|
+
],
|
|
36
|
+
"seed": 123
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
},
|
|
40
|
+
"actions": {
|
|
41
|
+
"comment": "Define actions, evaluations, and data to be used by the transformer created above.",
|
|
42
|
+
"partitions": {
|
|
43
|
+
"comment": "Applies the time series partitioning time series estimator, myPartitioner, to partition the time series dataset, airpass_dataset. Note that when performing a time series partition, the first 60% of records in the dataset will be sequentially assigned to the training partition and the remaining 40% of records will be assigned to the validation partition. For a complete list of all parameters and evaluations supported by time series partitioning, see the RASON Data Mining Components chapter in the RASON Reference Guide. ",
|
|
44
|
+
"data": "airpass_dataset",
|
|
45
|
+
"action": "transform",
|
|
46
|
+
"evaluations": [ "transformation" ]
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
}
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
{
|
|
2
|
+
"modelName": "PartitioningDF",
|
|
3
|
+
"modelDescription": "transformation: partitioning",
|
|
4
|
+
"modelType": "datamining",
|
|
5
|
+
"datasources": {
|
|
6
|
+
"mySrc": {
|
|
7
|
+
"type": "csv",
|
|
8
|
+
"connection": "hald-small-binary.txt",
|
|
9
|
+
"direction": "import"
|
|
10
|
+
}
|
|
11
|
+
},
|
|
12
|
+
"datasets": {
|
|
13
|
+
"myData": {
|
|
14
|
+
"binding": "mySrc"
|
|
15
|
+
}
|
|
16
|
+
},
|
|
17
|
+
"transformer": {
|
|
18
|
+
"myPartitioner": {
|
|
19
|
+
"type": "transformation",
|
|
20
|
+
"algorithm": "partitioning",
|
|
21
|
+
"parameters": {
|
|
22
|
+
"partitionMethod": "RANDOM",
|
|
23
|
+
"ratios": [
|
|
24
|
+
[
|
|
25
|
+
"Training",
|
|
26
|
+
0.5
|
|
27
|
+
],
|
|
28
|
+
[
|
|
29
|
+
"Validation",
|
|
30
|
+
0.3
|
|
31
|
+
],
|
|
32
|
+
[
|
|
33
|
+
"Testing",
|
|
34
|
+
0.2
|
|
35
|
+
]
|
|
36
|
+
],
|
|
37
|
+
"seed": 123
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
},
|
|
41
|
+
"actions": {
|
|
42
|
+
"trainingPartition": {
|
|
43
|
+
"data": "myData",
|
|
44
|
+
"action": "transform",
|
|
45
|
+
"parameters": {
|
|
46
|
+
"partition": "Training"
|
|
47
|
+
},
|
|
48
|
+
"evaluations": [
|
|
49
|
+
"transformation"
|
|
50
|
+
]
|
|
51
|
+
},
|
|
52
|
+
"validationPartition": {
|
|
53
|
+
"data": "myData",
|
|
54
|
+
"action": "transform",
|
|
55
|
+
"parameters": {
|
|
56
|
+
"partition": "Validation"
|
|
57
|
+
},
|
|
58
|
+
"evaluations": [
|
|
59
|
+
"transformation"
|
|
60
|
+
]
|
|
61
|
+
},
|
|
62
|
+
"testPartition": {
|
|
63
|
+
"data": "myData",
|
|
64
|
+
"action": "transform",
|
|
65
|
+
"parameters": {
|
|
66
|
+
"partition": "Testing"
|
|
67
|
+
},
|
|
68
|
+
"evaluations": [
|
|
69
|
+
"transformation"
|
|
70
|
+
]
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
}
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
{
|
|
2
|
+
"modelName": "Partitioning",
|
|
3
|
+
"modelDescription": "Transformation RASON model example that performs partitioning. This example uses an outside data source, hald-small-binary.txt, which can be downloaded by clicking the Download RASON Example Files icon (download icon) on the ribbon. To attach the source file to the example, click Choose Files (on the Properties tab on the right), navigate to the location of the downloaded files, select hald-small-binary.txt and click Open. Click the POST icon (upload icon) to POST the model to the RASON Server, then click the down arrow next to the Play icon and select Solve to solve the model.",
|
|
4
|
+
"modelType": "datamining",
|
|
5
|
+
"datasources": {
|
|
6
|
+
"comment": "Define datasources to use with this model. Typically these bind to external data sources due to data volume.",
|
|
7
|
+
"mySrc": {
|
|
8
|
+
"comment": "Imports hald-small-binary.txt as datasource, downloadable by clicking Download RASON example data icon, on the ribbon",
|
|
9
|
+
"type": "csv",
|
|
10
|
+
"connection": "hald-small-binary.txt",
|
|
11
|
+
"direction": "import"
|
|
12
|
+
}
|
|
13
|
+
},
|
|
14
|
+
"datasets": {
|
|
15
|
+
"comment": "Datasets are bound to an entry in the datasources section",
|
|
16
|
+
"myData": {
|
|
17
|
+
"comment": "Binds the mySrc datasource (hald-small-binary.txt) to the myData dataset.",
|
|
18
|
+
"binding": "mySrc"
|
|
19
|
+
}
|
|
20
|
+
},
|
|
21
|
+
"transformer": {
|
|
22
|
+
"comment": "Defines a transformer, including the type, algorithm and parameters. Only 1 estimator/transformer may appear in a RASON model.",
|
|
23
|
+
"myPartitioner": {
|
|
24
|
+
"comment": "Defines myPartitioner as a partitioning transformer. The type of partition (standard), the random seed setting, and the percentages of records to be assigned to the training, validation and testing partitions are set in parameters. For a complete list of all algorithm options, see the RASON Data Mining Components chapter in the RASON Reference Guide. (Click the Help tab to download.)",
|
|
25
|
+
"type": "transformation",
|
|
26
|
+
"algorithm": "partitioning",
|
|
27
|
+
"parameters": {
|
|
28
|
+
"partitionMethod": "RANDOM",
|
|
29
|
+
"ratios": [
|
|
30
|
+
[ "Training", 0.5 ],
|
|
31
|
+
[ "Validation", 0.3 ],
|
|
32
|
+
[ "Testing", 0.2 ]
|
|
33
|
+
],
|
|
34
|
+
"seed": 123
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
},
|
|
38
|
+
"actions": {
|
|
39
|
+
"comment": "Define actions, evaluations, and data to be used by the transformer created above.",
|
|
40
|
+
"partitions": {
|
|
41
|
+
"comment": "Applies the transformer (using 'action':'transform') to the myData dataset ('data':'myData') using the mypartitioner transformer. The only evaluation requested is the transformed dataset, i.e. dataset divided into three partitions.",
|
|
42
|
+
"data": "myData",
|
|
43
|
+
"action": "transform",
|
|
44
|
+
"evaluations": [ "transformation" ]
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
}
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
{
|
|
2
|
+
"modelName": "PartitioningWithOversamplingDF",
|
|
3
|
+
"modelDescription": "Transformation RASON model example that performs partitioning with oversampling. The difference between this oversampling example and the PartitionWithOversampling example is that this example returns the partitions as dataframes. This example uses an outside data source, hald-small-binary.txt, which can be downloaded by clicking the Download RASON Example Files icon (download icon) on the ribbon. To attach the source file to the example, click Choose Files (on the Properties tab on the right), navigate to the location of the downloaded files, select hald-small-binary.txt and click Open. Click the POST icon (upload icon) to POST the model to the RASON Server, then click the down arrow next to the Play icon and select Solve to solve the model.",
|
|
4
|
+
"modelType": "datamining",
|
|
5
|
+
"datasources": {
|
|
6
|
+
"comment": "Define datasources to use with this model. Typically these bind to external data sources due to data volume.",
|
|
7
|
+
"mySrc": {
|
|
8
|
+
"comment": "Imports hald-small-binary.txt as datasource, downloadable by clicking Download RASON example data icon, on the ribbon",
|
|
9
|
+
"type": "csv",
|
|
10
|
+
"connection": "hald-small-binary.txt",
|
|
11
|
+
"direction": "import"
|
|
12
|
+
}
|
|
13
|
+
},
|
|
14
|
+
"datasets": {
|
|
15
|
+
"comment": "Datasets are bound to an entry in the datasources section",
|
|
16
|
+
"myData": {
|
|
17
|
+
"comment": "Binds the mySrc datasource (hald-small-binary.txt) to the myData dataset.",
|
|
18
|
+
"binding": "mySrc",
|
|
19
|
+
"targetCol": "Y"
|
|
20
|
+
}
|
|
21
|
+
},
|
|
22
|
+
"transformer": {
|
|
23
|
+
"comment": "Defines a transformer, including the type, algorithm and parameters. Only 1 estimator/transformer may appear in a RASON model.",
|
|
24
|
+
"myPartitioner": {
|
|
25
|
+
"comment": "Defines myPartitioner as a partitioning using oversampling transformer. Four options are set in parameters. The parameter successRationinTraining sets the percentage of successes to be assigned to the training set. With this setting, the default, 50% of the successes will be assigned to the training partition and the remainder will be assigned to the validation partition. The last parameter, testRAtioFromValidation, specifies the percentage of the validation set that should be allocated to the test set. For a complete list of all algorithm options, see the RASON Data Mining Components chapter in the RASON Reference Guide. (Click the Help tab to download.)",
|
|
26
|
+
"type": "transformation",
|
|
27
|
+
"algorithm": "oversamplePartitioning",
|
|
28
|
+
"parameters": {
|
|
29
|
+
"seed": 12345,
|
|
30
|
+
"successClass": "1",
|
|
31
|
+
"successRatioInTraining": 0.5,
|
|
32
|
+
"testRatioFromValidation": 0.1
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
},
|
|
36
|
+
"actions": {
|
|
37
|
+
"comment": "Define actions, evaluations, and data to be used by the transformer created above.",
|
|
38
|
+
"trainingPartition": {
|
|
39
|
+
"comment": "Applies the transformer (using 'action':'transform') to the myData dataset ('data':'myData') using the mypartitioner transformer to create the Training partition. The only evaluation requested is the training partition which will be returned as a dataframe.",
|
|
40
|
+
"data": "myData",
|
|
41
|
+
"action": "transform",
|
|
42
|
+
"parameters": {
|
|
43
|
+
"partition": "Training"
|
|
44
|
+
},
|
|
45
|
+
"evaluations": [ "transformation" ]
|
|
46
|
+
},
|
|
47
|
+
"validationPartition": {
|
|
48
|
+
"comment": "Applies the transformer (using 'action':'transform') to the myData dataset ('data':'myData') using the mypartitioner transformer to create the Validation partition. The only evaluation requested is the validation partition which will be returned as a dataframe..",
|
|
49
|
+
"data": "myData",
|
|
50
|
+
"action": "transform",
|
|
51
|
+
"parameters": {
|
|
52
|
+
"partition": "Validation"
|
|
53
|
+
},
|
|
54
|
+
"evaluations": [ "transformation" ]
|
|
55
|
+
},
|
|
56
|
+
"testPartition": {
|
|
57
|
+
"comment": "Applies the transformer (using 'action':'transform') to the myData dataset ('data':'myData') using the mypartitioner transformer to create the Test partition. The only evaluation requested is the test partition which will be returned as a dataframe..",
|
|
58
|
+
"data": "myData",
|
|
59
|
+
"action": "transform",
|
|
60
|
+
"parameters": {
|
|
61
|
+
"partition": "Testing"
|
|
62
|
+
},
|
|
63
|
+
"evaluations": [ "transformation" ]
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
}
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
{
|
|
2
|
+
"modelName": "PartitioningWithOversampling",
|
|
3
|
+
"modelDescription": "Transformation RASON model example that performs partitioning with oversampling. The difference between this oversampling example and the PartitionWithOversamplingDF example is that this example does not return the partitions as dataframes. This example uses an outside data source, hald-small-binary.txt, which can be downloaded by clicking the Download RASON Example Files icon (download icon) on the ribbon. To attach the source file to the example, click Choose Files (on the Properties tab on the right), navigate to the location of the downloaded files, select hald-small-binary.txt and click Open. Click the POST icon (upload icon) to POST the model to the RASON Server, then click the down arrow next to the Play icon and select Solve to solve the model.",
|
|
4
|
+
|
|
5
|
+
"modelType": "datamining",
|
|
6
|
+
"datasources": {
|
|
7
|
+
"comment": "Define datasources to use with this model. Typically these bind to external data sources due to data volume.",
|
|
8
|
+
"mySrc": {
|
|
9
|
+
"comment": "Imports hald-small-binary.txt as datasource, downloadable by clicking Download RASON example data icon, on the ribbon",
|
|
10
|
+
"type": "csv",
|
|
11
|
+
"connection": "hald-small-binary.txt",
|
|
12
|
+
"direction": "import"
|
|
13
|
+
}
|
|
14
|
+
},
|
|
15
|
+
"datasets": {
|
|
16
|
+
"comment": "Datasets are bound to an entry in the datasources section",
|
|
17
|
+
"myData": {
|
|
18
|
+
"comment": "Binds the mySrc datasource (hald-small-binary.txt) to the myData dataset.",
|
|
19
|
+
"binding": "mySrc",
|
|
20
|
+
"targetCol": "Y"
|
|
21
|
+
}
|
|
22
|
+
},
|
|
23
|
+
"transformer": {
|
|
24
|
+
"myPartitioner": {
|
|
25
|
+
"comment": "Defines myPartitioner as a partitioning using oversampling transformer. Four options are set in parameters. The parameter successRationinTraining sets the percentage of successes to be assigned to the training set. With this setting, the default, 50% of the successes will be assigned to the training partition and the remainder will be assigned to the validation partition. The last parameter, testRAtioFromValidation, specifies the percentage of the validation set that should be allocated to the test set. For a complete list of all algorithm options, see the RASON Data Mining Components chapter in the RASON Reference Guide. (Click the Help tab to download.)",
|
|
26
|
+
"type": "transformation",
|
|
27
|
+
"algorithm": "oversamplePartitioning",
|
|
28
|
+
"parameters": {
|
|
29
|
+
"seed": 12345,
|
|
30
|
+
"successClass": "1",
|
|
31
|
+
"successRatioInTraining": 0.5,
|
|
32
|
+
"testRatioFromValidation": 0.1
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
},
|
|
36
|
+
"actions": {
|
|
37
|
+
"comment": "Define actions, evaluations, and data to be used by the transformer created above.",
|
|
38
|
+
"partitions": {
|
|
39
|
+
"comment": "Applies the transformer (using 'action':'transform') to the myData dataset ('data':'myData') using the mypartitioner transformer to create all three partitions using oversampling. The only evaluation requested is the are the three partitions.",
|
|
40
|
+
"data": "myData",
|
|
41
|
+
"action": "transform",
|
|
42
|
+
"evaluations": [ "transformation" ]
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
}
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
{
|
|
2
|
+
"modelName": "PrincipalComponentsAnalysis",
|
|
3
|
+
"modelDescription": "Transformation RASON model example that performs principal components analysis. This example uses an outside data source, irisfacto.txt, which can be downloaded by clicking the Download RASON Example Files icon (download icon) on the ribbon. To attach the source file to the example, click Choose Files (on the Properties tab on the right), navigate to the location of the downloaded files, select irisfacto.txt and click Open. Click the POST icon (upload icon) to POST the model to the RASON Server, then click the down arrow next to the Play icon and select Solve to solve the model.",
|
|
4
|
+
"modelType": "datamining",
|
|
5
|
+
"comment": "Imports data source, downloadable by clicking Download RASON example model icon, on the ribbon",
|
|
6
|
+
"datasources": {
|
|
7
|
+
"comment": "Imports Irisfacto.txt as datasource, downloadable by clicking Download RASON example data icon, on the ribbon",
|
|
8
|
+
"myDataSrc": {
|
|
9
|
+
"type": "csv",
|
|
10
|
+
"connection": "Irisfacto.txt",
|
|
11
|
+
"direction": "import"
|
|
12
|
+
}
|
|
13
|
+
},
|
|
14
|
+
"datasets": {
|
|
15
|
+
"comment": "Datasets are bound to an entry in the datasources section",
|
|
16
|
+
"myData": {
|
|
17
|
+
"comment": "Binds the myDataSrc datasource (Irisfacto.txt) to the myData dataset.",
|
|
18
|
+
"binding": "myDataSrc"
|
|
19
|
+
}
|
|
20
|
+
},
|
|
21
|
+
"estimator": {
|
|
22
|
+
"comment": "Defines an estimator, including the type, algorithm and parameters. Only 1 estimator/transformer may appear in a RASON model.",
|
|
23
|
+
"pcaEstimator": {
|
|
24
|
+
"comment": "Defines pcaEstimator as a principal components analysis estimator. The correlation parameter is set in parameters. For a complete list of all algorithm options, see the RASON Data Mining Components chapter in the RASON Reference Guide. (Click the Help tab to download.)",
|
|
25
|
+
"type": "transformation",
|
|
26
|
+
"algorithm": "principalComponentAnalysis",
|
|
27
|
+
"parameters": {
|
|
28
|
+
"matrixMethod": "CORRELATION"
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
},
|
|
32
|
+
"actions": {
|
|
33
|
+
"comment": "Define actions, evaluations, and data to be used by the transformer created above.",
|
|
34
|
+
"pcaModel": {
|
|
35
|
+
"comment": "Fits (using 'action':'fit') a model to the myData dataset (using 'data':'myData') using the principal component analysis estimator ('estimator':'pcaEstimator'), POSTS the fitted model (pcaModel) to the RASON Server, in json format, using export:json. The fitted model will be returned in the JSON results. (Click Show JSON results, upper right hand corner of OData viewer, to view the fitted model.)",
|
|
36
|
+
"data": "myData",
|
|
37
|
+
"estimator": "pcaEstimator",
|
|
38
|
+
"action": "fit",
|
|
39
|
+
"export": "json",
|
|
40
|
+
"evaluations": [ "fittedModelJson" ]
|
|
41
|
+
},
|
|
42
|
+
"transformedData": {
|
|
43
|
+
"comment": "Applies the fitted model (using 'action':'transform') to the myData dataset ('data':'myData') using the PCA model, pcaModel ('fittedModel':'pcaModel'). Various evaluations, including the transformed data, will be returned in the results. For a complete list of all algorithm options, see the RASON Data Mining Components chapter in the RASON Reference Guide. (Click the Help tab to download.)",
|
|
44
|
+
"data": "myData",
|
|
45
|
+
"fittedModel": "pcaModel",
|
|
46
|
+
"parameters": {
|
|
47
|
+
"numPrincipalComponents": 3
|
|
48
|
+
},
|
|
49
|
+
"action": "transform",
|
|
50
|
+
"evaluations": [ "transformation", "principalEigenvalues", "principalComponents", "principalVariance", "qStatistic", "tSquaredStatistic" ]
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
}
|