@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,50 @@
|
|
|
1
|
+
{
|
|
2
|
+
"modelName": "MSAccessDatabase",
|
|
3
|
+
"modelDescription": "Transformation: Rescaling: This RASON model example rescales the data contained within a Microsoft Access database. This example uses the database, ms-access-db.accdb, which may be downloaded by clicking the RASON Examples Download icon (download cloud icon). To solve this model, you must first POST the model to the RASON Server by clicking the POST icon (upload cloud icon on the left). Afterwards click Choose Files (on the Properties pane on the right), browse to the location of the downloaded examples, and select the ms-access-db.accdb database. Click Open. Then click the down arrow next to the Play icon and click Solve. For more information on POSTing and solving example models, click Help - Defining Your Data Science Model.",
|
|
4
|
+
"modelType": "datamining",
|
|
5
|
+
"datasources": {
|
|
6
|
+
"comment": "Define datasources to use with this model, in the datasources section. Typically these bind to external data sources due to data volume.",
|
|
7
|
+
"msAccessSrc": {
|
|
8
|
+
"comment": "Binds the MS Access database, ms-access-db.accdb, to the msAccessSrc datasource. The file name is ms-access-db.accdb and is passed to the 'connection' property. The selection property selects all columns in the Hald table. This file is being imported, so 'direction' is set to 'import'. For a complete list of options and setting for a datasource, see the RASON Data Science Model Components chapter within the RASON Reference Guide, which can be downloaded from the Help tab.",
|
|
9
|
+
"type": "access",
|
|
10
|
+
"connection": "ms-access-db.accdb",
|
|
11
|
+
"selection": "SELECT * FROM Hald",
|
|
12
|
+
"direction": "import"
|
|
13
|
+
}
|
|
14
|
+
},
|
|
15
|
+
"datasets": {
|
|
16
|
+
"comment": "Use the datasets section to bind to an entry in the 'datasources' section",
|
|
17
|
+
"myData": {
|
|
18
|
+
"comment": "Binds the msAccessSrc datasource to the myData dataset.",
|
|
19
|
+
"binding": "msAccessSrc"
|
|
20
|
+
}
|
|
21
|
+
},
|
|
22
|
+
"estimator": {
|
|
23
|
+
"comment": "Define an estimator, including the type, algorithm and parameters. Only 1 estimator/transformer may appear in a RASON model.",
|
|
24
|
+
"myRescaler": {
|
|
25
|
+
"comment": "Creates a new rescaling estimator, myRescaler, which will be called in 'actions' (below) to rescale the dataset within the Hald table in the MS Access database. Two options are set. For a complete list of options and setting for the rescaling feature, see the RASON Data Science Model Components chapter within the RASON Reference Guide (downloadable from the Help tab).",
|
|
26
|
+
"type": "transformation",
|
|
27
|
+
"algorithm": "rescaling",
|
|
28
|
+
"parameters": {
|
|
29
|
+
"technique": "UNIT_NORMALIZATION",
|
|
30
|
+
"normType": "L1"
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
},
|
|
34
|
+
"actions": {
|
|
35
|
+
"comment": "Define the actions, evaluations, and data to be used by the estimator defined above.",
|
|
36
|
+
"rescalerModel": {
|
|
37
|
+
"comment": "Calls the myRescaler estimator to fit a model to the myData dataset.",
|
|
38
|
+
"trainData": "myData",
|
|
39
|
+
"estimator": "myRescaler",
|
|
40
|
+
"action": "fit"
|
|
41
|
+
},
|
|
42
|
+
"rescaledData": {
|
|
43
|
+
"comment": "Uses the rescalerModel (created above) to rescale (transform) the myData dataset. The evaluation, transformation, returns the rescaled dataset in the results. For a complete list of rescaler evaluations, see the RASON Data Science Model Components chapter within the RASON Reference Guide (downloadable from the Help tab).",
|
|
44
|
+
"data": "myData",
|
|
45
|
+
"fittedModel": "rescalerModel",
|
|
46
|
+
"action": "transform",
|
|
47
|
+
"evaluations": [ "transformation" ]
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
}
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
{
|
|
2
|
+
"modelName": "MSExcelTable",
|
|
3
|
+
"modelDescription": "Transformation: Rescaling: This RASON model example rescales the data contained within the Microsoft Excel spreadsheet, hald.xlsx, which may be downloaded by clicking the RASON Examples Download icon (download cloud icon). To solve this model, you must first POST the model to the RASON Server by clicking the POST icon (upload cloud icon on the left). Afterwards click Choose Files (on the Properties pane on the right), browse to the location of the downloaded examples, and select the hald.xlsx workbook. Click Open. Then click the down arrow next to the Play icon and click Solve. For more information on POSTing and solving example models, click Help - Defining Your Data Science Model.",
|
|
4
|
+
"modelType": "datamining",
|
|
5
|
+
"datasources": {
|
|
6
|
+
"comment": "Define datasources to use with this model, in the datasources section. Typically these bind to external data sources due to data volume.",
|
|
7
|
+
"msExcelSrc": {
|
|
8
|
+
"comment": "Binds the data within the Microsoft Excel workbook, hald.xlsx, located on the Data worksheet in cells A1:E14, to the msExcelSrc datasource. The file name is passed to the 'connection' property. The selection property selects cells Data!A2:E14. Since the data contains column headings, the property 'headerExists' must be set to true. This file is being imported, so 'direction' is set to 'import'. For a complete list of options and setting for a datasource, see the RASON Data Science Model Components chapter within the RASON Reference Guide, which can be downloaded from the Help tab.",
|
|
9
|
+
"type": "excel",
|
|
10
|
+
"connection": "hald.xlsx",
|
|
11
|
+
"selection": "Data!A2:E14",
|
|
12
|
+
"headerExists": true,
|
|
13
|
+
"direction": "import"
|
|
14
|
+
}
|
|
15
|
+
},
|
|
16
|
+
"datasets": {
|
|
17
|
+
"comment": "Use the datasets section to bind to an entry in the 'datasources' section",
|
|
18
|
+
"myData": {
|
|
19
|
+
"comment": "Binds the msExcelSrc datasource to the myData dataset.",
|
|
20
|
+
"binding": "msExcelSrc"
|
|
21
|
+
}
|
|
22
|
+
},
|
|
23
|
+
"estimator": {
|
|
24
|
+
"comment": "Define an estimator, including the type, algorithm and parameters. Only 1 estimator/transformer may appear in a RASON model.",
|
|
25
|
+
"myRescaler": {
|
|
26
|
+
"comment": "Creates a new rescaling estimator, myRescaler, which will be called in 'actions' (below) to rescale the dataset within the Excel worksheet. Two options are set. For a complete list of options and setting for the rescaling feature, see the RASON Data Science Model Components chapter within the RASON Reference Guide (downloadable from the Help tab).",
|
|
27
|
+
"type": "transformation",
|
|
28
|
+
"algorithm": "rescaling",
|
|
29
|
+
"parameters": {
|
|
30
|
+
"technique": "UNIT_NORMALIZATION",
|
|
31
|
+
"normType": "L1"
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
},
|
|
35
|
+
"actions": {
|
|
36
|
+
"comment": "Define the actions, evaluations, and data to be used by the estimator defined above.",
|
|
37
|
+
"rescalerModel": {
|
|
38
|
+
"comment": "Calls the myRescaler estimator to fit a model to the myData dataset.",
|
|
39
|
+
"trainData": "myData",
|
|
40
|
+
"estimator": "myRescaler",
|
|
41
|
+
"action": "fit"
|
|
42
|
+
},
|
|
43
|
+
"rescaledData": {
|
|
44
|
+
"comment": "Uses the rescalerModel (created above) to rescale (transform) the myData dataset. The evaluation, transformation, returns the rescaled dataset in the results. For a complete list of rescaler evaluations, see the RASON Data Science Model Components chapter within the RASON Reference Guide (downloadable from the Help tab).",
|
|
45
|
+
"data": "myData",
|
|
46
|
+
"fittedModel": "rescalerModel",
|
|
47
|
+
"action": "transform",
|
|
48
|
+
"evaluations": [ "transformation" ]
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
}
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
{
|
|
2
|
+
"modelName": "MSSQLDatabase",
|
|
3
|
+
"modelDescription": "Transformation: Rescaling: This RASON model example rescales the data contained within an MS-SQL database. (This model is for illustration purposes only.) Note that RASON now allows Data Connections. In previous versions of RASON, models that accessed external databases required actual credentials to be passed, such as database URLs, port numbers, usernames and passwords, in the text of the RASON model, in a datasource declaration, as shown below. RASON now offers an alternative to tackle this security risk by substituting 'connection': 'Driver={SQL Server} ...' with three options: a file containing the contents of 'connection', a named Data Connection or a URL pointing to Microsoft Common Data Service. Click Help - Rason Subscriptions -- Data Connections for more information.",
|
|
4
|
+
"modelType": "datamining",
|
|
5
|
+
"datasources": {
|
|
6
|
+
"comment": "Define datasources to use with this model, in the datasources section. Typically these bind to external data sources due to data volume.",
|
|
7
|
+
"mssqlSrc": {
|
|
8
|
+
"comment": "Binds the data within an MS-SQL database to the mssqlSrc datasource. The file name is passed to the 'connection' property. The 'selection' property selects the data to be imported. This data is being imported, so 'direction' is set to 'import'. Note that RASON now allows Data Connections. In previous versions of RASON, models that accessed external databases required actual credentials to be passed, such as database URLs, port numbers, usernames and passwords, in the text of the RASON model, in a datasource declaration, as shown below. RASON now offers an alternative to tackle this security risk by substituting 'connection': 'Driver={SQL Server} ...' with three options: a file containing the contents of 'connection', a named Data Connection or a URL pointing to Microsoft Common Data Service. Click Help - Rason Subscriptions -- Data Connections for more information.",
|
|
9
|
+
"type": "mssql",
|
|
10
|
+
"connection": "<server_name>;<db_name>;<trusted>;<uid>;<pwd>",
|
|
11
|
+
"selection": "<selection>",
|
|
12
|
+
"direction": "import"
|
|
13
|
+
}
|
|
14
|
+
},
|
|
15
|
+
"datasets": {
|
|
16
|
+
"comment": "Use the datasets section to bind to an entry in the 'datasources' section",
|
|
17
|
+
"myData": {
|
|
18
|
+
"comment": "Binds the mssqlSrc datasource to the myData dataset.",
|
|
19
|
+
"binding": "mssqlSrc"
|
|
20
|
+
}
|
|
21
|
+
},
|
|
22
|
+
"estimator": {
|
|
23
|
+
"comment": "Define an estimator, including the type, algorithm and parameters. Only 1 estimator/transformer may appear in a RASON model.",
|
|
24
|
+
"myRescaler": {
|
|
25
|
+
"comment": "Creates a new rescaling estimator, myRescaler, which will be called in 'actions' (below) to rescale the dataset within the MSSQL database. Two options are set. For a complete list of options and setting for the rescaling feature, see the RASON Data Science Model Components chapter within the RASON Reference Guide (downloadable from the Help tab).",
|
|
26
|
+
"type": "transformation",
|
|
27
|
+
"algorithm": "rescaling",
|
|
28
|
+
"parameters": {
|
|
29
|
+
"technique": "UNIT_NORMALIZATION",
|
|
30
|
+
"normType": "L1"
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
},
|
|
34
|
+
"actions": {
|
|
35
|
+
"comment": "Define the actions, evaluations, and data to be used by the estimator defined above.",
|
|
36
|
+
"rescalerModel": {
|
|
37
|
+
"comment": "Calls the myRescaler estimator to fit a model to the myData dataset.",
|
|
38
|
+
"trainData": "myData",
|
|
39
|
+
"estimator": "myRescaler",
|
|
40
|
+
"action": "fit"
|
|
41
|
+
},
|
|
42
|
+
"rescaledData": {
|
|
43
|
+
"comment": "Uses the rescalerModel (created above) to rescale (transform) the myData dataset. The evaluation, transformation, returns the rescaled dataset in the results. For a complete list of rescaler evaluations, see the RASON Data Science Model Components chapter within the RASON Reference Guide (downloadable from the Help tab).",
|
|
44
|
+
"data": "myData",
|
|
45
|
+
"fittedModel": "rescalerModel",
|
|
46
|
+
"action": "transform",
|
|
47
|
+
"evaluations": [ "transformation" ]
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
}
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
{
|
|
2
|
+
"modelName": "ODATATable",
|
|
3
|
+
"modelDescription": "Transformation: Rescaling: This RASON model example rescales the data contained within an OData table. (This model is for illustration purposes only.) See below for information on using a Data Connection.",
|
|
4
|
+
"modelType": "datamining",
|
|
5
|
+
"datasources": {
|
|
6
|
+
"comment": "Define datasources to use with this model, in the datasources section. Typically these bind to external data sources due to data volume.",
|
|
7
|
+
"odataSrc": {
|
|
8
|
+
"comment": "Binds the data within an ODATA table to the odataSrc datasource. The file name is passed to the 'connection' property. The 'selection' property selects the data to be imported. This data is being imported, so 'direction' is set to 'import'. Note that RASON now allows Data Connections. In previous versions of RASON, models that accessed external data required actual credentials to be passed, such as database URLs, port numbers, usernames and passwords, in the text of the RASON model, in a datasource declaration, as shown below. RASON now offers an alternative to tackle this security risk by substituting 'connection': 'Driver={SQL Server} ...' with three options: a file containing the contents of 'connection', a named Data Connection or a URL pointing to Microsoft Common Data Service. Click Help - Rason Subscriptions -- Data Connections for more information.",
|
|
9
|
+
"type": "odata",
|
|
10
|
+
"connection": "<server>",
|
|
11
|
+
"selection": "<selection>",
|
|
12
|
+
"direction": "import"
|
|
13
|
+
}
|
|
14
|
+
},
|
|
15
|
+
"datasets": {
|
|
16
|
+
"comment": "Use the datasets section to bind to an entry in the 'datasources' section",
|
|
17
|
+
"myData": {
|
|
18
|
+
"comment": "Binds the ODATA table to the myData dataset.",
|
|
19
|
+
"binding": "odataSrc"
|
|
20
|
+
}
|
|
21
|
+
},
|
|
22
|
+
"estimator": {
|
|
23
|
+
"comment": "Define an estimator, including the type, algorithm and parameters. Only 1 estimator/transformer may appear in a RASON model.",
|
|
24
|
+
"myRescaler": {
|
|
25
|
+
"comment": "Creates a new rescaling estimator, myRescaler, which will be called in 'actions' (below) to rescale the dataset within ODATA table. Two options are set. For a complete list of options and setting for the rescaling feature, see the RASON Data Science Model Components chapter within the RASON Reference Guide (downloadable from the Help tab).",
|
|
26
|
+
"type": "transformation",
|
|
27
|
+
"algorithm": "rescaling",
|
|
28
|
+
"parameters": {
|
|
29
|
+
"technique": "UNIT_NORMALIZATION",
|
|
30
|
+
"normType": "L1"
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
},
|
|
34
|
+
"actions": {
|
|
35
|
+
"comment": "Define the actions, evaluations, and data to be used by the estimator defined above.",
|
|
36
|
+
"rescalerModel": {
|
|
37
|
+
"comment": "Calls the myRescaler estimator to fit a model to the myData dataset.",
|
|
38
|
+
"trainData": "myData",
|
|
39
|
+
"estimator": "myRescaler",
|
|
40
|
+
"action": "fit"
|
|
41
|
+
},
|
|
42
|
+
"rescaledData": {
|
|
43
|
+
"comment": "Uses the rescalerModel (created above) to rescale (transform) the myData dataset. The evaluation, transformation, returns the rescaled dataset in the results. For a complete list of rescaler evaluations, see the RASON Data Science Model Components chapter within the RASON Reference Guide (downloadable from the Help tab).",
|
|
44
|
+
"data": "myData",
|
|
45
|
+
"fittedModel": "rescalerModel",
|
|
46
|
+
"action": "transform",
|
|
47
|
+
"evaluations": [ "transformation" ]
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
}
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
{
|
|
2
|
+
"modelName": "ODBCDatabase",
|
|
3
|
+
"modelDescription": "Transformation: Rescaling: This RASON model example rescales the data contained within an ODBC database. (This example is for illustration purposes only.) Note that RASON now allows Data Connections. In previous versions of RASON, models that accessed external databases required actual credentials to be passed, such as database URLs, port numbers, usernames and passwords, in the text of the RASON model, in a datasource declaration, as shown below. RASON now offers an alternative to tackle this security risk by substituting 'connection': 'Driver={SQL Server} ...' with three options: a file containing the contents of 'connection', a named Data Connection or a URL pointing to Microsoft Common Data Service. Click Help - Rason Subscriptions -- Data Connections for more information.",
|
|
4
|
+
"modelType": "datamining",
|
|
5
|
+
"datasources": {
|
|
6
|
+
"comment": "Define datasources to use with this model, in the datasources section. Typically these bind to external data sources due to data volume.",
|
|
7
|
+
"odbcSrc": {
|
|
8
|
+
"comment": "Binds the data within an ODBC database to the odbcSrc datasource. The file name is passed to the 'connection' property. The 'selection' property selects the data to be imported. This data is being imported, so 'direction' is set to 'import'. Note that RASON now allows Data Connections. In previous versions of RASON, models that accessed external databases required actual credentials to be passed, such as database URLs, port numbers, usernames and passwords, in the text of the RASON model, in a datasource declaration, as shown below. RASON now offers an alternative to tackle this security risk by substituting 'connection': '<connection_string>' with three options: a file containing the contents of 'connection', a named Data Connection or a URL pointing to Microsoft Common Data Service. Click Help - Rason Subscriptions -- Data Connections for more information.",
|
|
9
|
+
"type": "odbc",
|
|
10
|
+
"connection": "<connection_string>",
|
|
11
|
+
"selection": "<selection>",
|
|
12
|
+
"direction": "import"
|
|
13
|
+
}
|
|
14
|
+
},
|
|
15
|
+
"datasets": {
|
|
16
|
+
"comment": "Use the datasets section to bind to an entry in the 'datasources' section",
|
|
17
|
+
"myData": {
|
|
18
|
+
"comment": "Binds the odbcSrc datasource to the myData dataset.",
|
|
19
|
+
"binding": "odbcSrc"
|
|
20
|
+
}
|
|
21
|
+
},
|
|
22
|
+
"estimator": {
|
|
23
|
+
"comment": "Define an estimator, including the type, algorithm and parameters. Only 1 estimator/transformer may appear in a RASON model.",
|
|
24
|
+
"myRescaler": {
|
|
25
|
+
"comment": "Creates a new rescaling estimator, myRescaler, which will be called in 'actions' (below) to rescale the dataset within the ODBC database. Two options are set. For a complete list of options and setting for the rescaling feature, see the RASON Data Science Model Components chapter within the RASON Reference Guide (downloadable from the Help tab).",
|
|
26
|
+
"type": "transformation",
|
|
27
|
+
"algorithm": "rescaling",
|
|
28
|
+
"parameters": {
|
|
29
|
+
"technique": "UNIT_NORMALIZATION",
|
|
30
|
+
"normType": "L1"
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
},
|
|
34
|
+
"actions": {
|
|
35
|
+
"comment": "Define the actions, evaluations, and data to be used by the estimator defined above.",
|
|
36
|
+
"rescalerModel": {
|
|
37
|
+
"comment": "Calls the myRescaler estimator to fit a model to the myData dataset.",
|
|
38
|
+
"trainData": "myData",
|
|
39
|
+
"estimator": "myRescaler",
|
|
40
|
+
"action": "fit"
|
|
41
|
+
},
|
|
42
|
+
"rescaledData": {
|
|
43
|
+
"comment": "Uses the rescalerModel (created above) to rescale (transform) the myData dataset. The evaluation, transformation, returns the rescaled dataset in the results. For a complete list of rescaler evaluations, see the RASON Data Science Model Components chapter within the RASON Reference Guide (downloadable from the Help tab).",
|
|
44
|
+
"data": "myData",
|
|
45
|
+
"fittedModel": "rescalerModel",
|
|
46
|
+
"action": "transform",
|
|
47
|
+
"evaluations": [ "transformation" ]
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
}
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
{
|
|
2
|
+
"modelName": "LinearWrapping",
|
|
3
|
+
"modelDescription": "Feature Selection Linear Wrapping: This RASON model example illustrates how to import data from an outside datasource, fit a model to the Feature Selection estimator, then use the fitted model to transform the dataset using feature selection linear wrapping.",
|
|
4
|
+
"modelType": "datamining",
|
|
5
|
+
"datasources": {
|
|
6
|
+
"comment": "Define datasources to use with this model, in the datasources section. Typically these bind to external data sources due to data volume.",
|
|
7
|
+
"myTrainSrc": {
|
|
8
|
+
"comment": "Binds the data within hald-small.txt to the myTrainSrc datasource. This data is being imported, so 'direction' is set to 'import'.",
|
|
9
|
+
"type": "csv",
|
|
10
|
+
"connection": "hald-small.txt",
|
|
11
|
+
"direction": "import"
|
|
12
|
+
}
|
|
13
|
+
},
|
|
14
|
+
"datasets": {
|
|
15
|
+
"comment": "Use the 'datasets' section to bind to an entry in the 'datasources' section",
|
|
16
|
+
"myTrainData": {
|
|
17
|
+
"comment": "Binds the myTrainSrc datasource to the myTrainData dataset.",
|
|
18
|
+
"binding": "myTrainSrc",
|
|
19
|
+
"targetCol": "Y"
|
|
20
|
+
}
|
|
21
|
+
},
|
|
22
|
+
"estimator": {
|
|
23
|
+
"comment": "Define an estimator, including the type, algorithm and parameters. Only 1 estimator/transformer may appear in a RASON model.",
|
|
24
|
+
"linearFSEstimator": {
|
|
25
|
+
"comment": "Creates a new rescaling estimator, linearFSEstimator, which will be called in 'actions' (below) to transform the dataset using Feature Selection Linear Wrapping. Exhaustive Search where searches of all combinations of variables are performed to observe which combination has the best fit. For a complete list of options and settings for the rescaling feature, see the RASON Data Science Model Components chapter within the RASON Reference Guide (downloadable from the Help tab).",
|
|
26
|
+
"type": "featureSelection",
|
|
27
|
+
"algorithm": "linearWrapping",
|
|
28
|
+
"parameters": {
|
|
29
|
+
"fitIntercept": true,
|
|
30
|
+
"method": "EXHAUSTIVE_SEARCH"
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
},
|
|
34
|
+
"actions": {
|
|
35
|
+
"comment": "Define the actions, evaluations, and data to be used by the estimator defined above.",
|
|
36
|
+
"linearFSModel": {
|
|
37
|
+
"comment": "Calls the linearFSEstimator estimator to fit a model to the myTrainData dataset. Two evaluations are requested in the results: bestSubsets, which returns the best subsets as determined by various error values and the probability, and bestSubsetsDetails, which returns the number of predictors, the residual sum of squares (RSS), Mallows CP, and the Probability for each subset. See the RASON Data Science Model Components chapter within the RASON Reference Guide for a list of all options related to the linear wrapping feature.",
|
|
38
|
+
"estimator": "linearFSEstimator",
|
|
39
|
+
"data": "myTrainData",
|
|
40
|
+
"action": "fit",
|
|
41
|
+
"evaluations": [ "bestSubsets", "bestSubsetsDetails" ]
|
|
42
|
+
},
|
|
43
|
+
"reducedTrainData": {
|
|
44
|
+
"comment": "Uses the linearFSModel (created above) to transform the myTrainData dataset. The evaluation, transformation, returns the transformed dataset in the results. For a complete list of linear wrapping evaluations, see the RASON Data Science Model Components chapter within the RASON Reference Guide (downloadable from the Help tab).",
|
|
45
|
+
"data": "myTrainData",
|
|
46
|
+
"fittedModel": "linearFSModel",
|
|
47
|
+
"parameters": {
|
|
48
|
+
"numTopFeatures": 2
|
|
49
|
+
},
|
|
50
|
+
"action": "transform",
|
|
51
|
+
"evaluations": [ "transformation" ]
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
}
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
{
|
|
2
|
+
"modelName": "LogisticWrapping",
|
|
3
|
+
"modelDescription": "Feature Selection Logistic Wrapping: This RASON model example illustrates how to import data from an outside datasource, fit a model to the Feature Selection estimator, then use the fitted model to transform the dataset using feature selection logistic wrapping.",
|
|
4
|
+
"modelType": "datamining",
|
|
5
|
+
"datasources": {
|
|
6
|
+
"comment": "Define datasources to use with this model, in the datasources section. Typically these bind to external data sources due to data volume.",
|
|
7
|
+
"myTrainSrc": {
|
|
8
|
+
"comment": "Binds the data within hald-small-binary.txt to the myTrainSrc datasource. This data is being imported, so 'direction' is set to 'import'.",
|
|
9
|
+
"type": "csv",
|
|
10
|
+
"connection": "hald-small-binary.txt",
|
|
11
|
+
"direction": "import"
|
|
12
|
+
}
|
|
13
|
+
},
|
|
14
|
+
"datasets": {
|
|
15
|
+
"comment": "Use the 'datasets' section to bind to an entry in the 'datasources' section",
|
|
16
|
+
"myTrainData": {
|
|
17
|
+
"comment": "Binds the myTrainSrc datasource to the myTrainData dataset. The variable Y is selected as the output variable using 'targetCol': 'Y'.",
|
|
18
|
+
"binding": "myTrainSrc",
|
|
19
|
+
"targetCol": "Y"
|
|
20
|
+
}
|
|
21
|
+
},
|
|
22
|
+
"estimator": {
|
|
23
|
+
"comment": "Define an estimator, including the type, algorithm and parameters. Only 1 estimator/transformer may appear in a RASON model.",
|
|
24
|
+
"logisticFSEstimator": {
|
|
25
|
+
"comment": "Creates a new feature selection estimator, logisticFSEstimator, which will be called in 'actions' (below) to transform the dataset using Feature Selection Logistic Wrapping. Three options are set: fitIntercept, maxIterations and method. The exhaustive Search method searches of all combinations of variables are performed to observe which combination has the best fit. For a complete list of options and settings for the this feature, see the RASON Data Science Model Components chapter within the RASON Reference Guide (downloadable from the Help tab).",
|
|
26
|
+
"type": "featureSelection",
|
|
27
|
+
"algorithm": "logisticWrapping",
|
|
28
|
+
"parameters": {
|
|
29
|
+
"fitIntercept": true,
|
|
30
|
+
"maxIterations": 10,
|
|
31
|
+
"method": "EXHAUSTIVE_SEARCH"
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
},
|
|
35
|
+
"actions": {
|
|
36
|
+
"comment": "Define an estimator, including the type, algorithm and parameters. Only 1 estimator/transformer may appear in a RASON model.",
|
|
37
|
+
"logisticFSModel": {
|
|
38
|
+
"comment": "Calls the logisticFSEstimator estimator to fit a model to the myTrainData dataset. Two evaluations are requested in the results: bestSubsets, which returns the best subsets as determined by various error values and the probability, and bestSubsetsDetails, which returns the number of predictors, the residual sum of squares (RSS), Mallows CP, and the Probability for each subset. See the RASON Data Science Model Components chapter within the RASON Reference Guide for a list of all options related to the logistic wrapping feature.",
|
|
39
|
+
"data": "myTrainData",
|
|
40
|
+
"estimator": "logisticFSEstimator",
|
|
41
|
+
"action": "fit",
|
|
42
|
+
"evaluations": [ "bestSubsets", "bestSubsetsDetails" ]
|
|
43
|
+
},
|
|
44
|
+
"reducedTrainData": {
|
|
45
|
+
"comment": "Uses the logisticFSModel (created above) to transform the myTrainData dataset. The evaluation, transformation, returns the transformed dataset in the results. For a complete list of logistic wrapping parameters and evaluations, see the RASON Data Science Model Components chapter within the RASON Reference Guide (downloadable from the Help tab).",
|
|
46
|
+
"data": "myTrainData",
|
|
47
|
+
"fittedModel": "logisticFSModel",
|
|
48
|
+
"parameters": {
|
|
49
|
+
"numTopFeatures": 2,
|
|
50
|
+
"successClass": "1",
|
|
51
|
+
"successProbability": 0.6
|
|
52
|
+
},
|
|
53
|
+
"action": "transform",
|
|
54
|
+
"evaluations": [ "transformation" ]
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
}
|
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
{
|
|
2
|
+
"modelName": "Univariate",
|
|
3
|
+
"modelDescription": "Feature Selection Univariate: This RASON model example illustrates how to import data from an outside datasource, fit a model to the Feature Selection estimator, then use the fitted model to transform the dataset using feature selection univariate.",
|
|
4
|
+
"modelType": "datamining",
|
|
5
|
+
"datasources": {
|
|
6
|
+
"comment": "Define datasources to use with this model, in the datasources section. Typically these bind to external data sources due to data volume.",
|
|
7
|
+
"myTrainSrc": {
|
|
8
|
+
"comment": "Binds the data within hald-small-binary-train.txt to the myTrainSrc datasource. This data is being imported, so 'direction' is set to 'import'. This dataset represents the training partition",
|
|
9
|
+
"type": "csv",
|
|
10
|
+
"connection": "hald-small-binary-train.txt",
|
|
11
|
+
"direction": "import"
|
|
12
|
+
},
|
|
13
|
+
"myValidSrc": {
|
|
14
|
+
"comment": "Binds the data within hald-small-binary-valid.txt to the myValidSrc datasource. This data is being imported, so 'direction' is set to 'import'. This dataset represents the validation partition",
|
|
15
|
+
"type": "csv",
|
|
16
|
+
"connection": "hald-small-binary-valid.txt",
|
|
17
|
+
"direction": "import"
|
|
18
|
+
}
|
|
19
|
+
},
|
|
20
|
+
"datasets": {
|
|
21
|
+
"comment": "Use the 'datasets' section to bind to an entry in the 'datasources' section",
|
|
22
|
+
"myTrainData": {
|
|
23
|
+
"comment": "Binds the myTrainSrc datasource to the myTrainData dataset. The variable Y is selected as the output variable using 'targetCol': 'Y'.",
|
|
24
|
+
"binding": "myTrainSrc",
|
|
25
|
+
"targetCol": "Y"
|
|
26
|
+
},
|
|
27
|
+
"myValidData": {
|
|
28
|
+
"comment": "Binds the myValidSrc datasource to the myValidData dataset. The variable Y is selected as the output variable using 'targetCol': 'Y'.",
|
|
29
|
+
"binding": "myValidSrc",
|
|
30
|
+
"targetCol": "Y"
|
|
31
|
+
}
|
|
32
|
+
},
|
|
33
|
+
"estimator": {
|
|
34
|
+
"comment": "Define an estimator, including the type, algorithm and parameters. Only 1 estimator/transformer may appear in a RASON model.",
|
|
35
|
+
"univariateFSEstimator": {
|
|
36
|
+
"comment": "Creates a new feature selection estimator, UnivariateFSEstimator, which will be called in 'actions' (below) to transform the dataset using Feature Selection Univariate. Four options are set: metric:CHI2 (computes the CHI^2 statistic), categoricalTarget (denotes that the output variable is categorical), binningTypeFeatures (transforms continuous input variables into categorical variables) and numBinsFeatures (sets the maximum number of bins for the input variables)s. For a complete list of options and settings for the this feature, see the RASON Data Science Model Components chapter within the RASON Reference Guide (downloadable from the Help tab).",
|
|
37
|
+
"type": "featureSelection",
|
|
38
|
+
"algorithm": "univariate",
|
|
39
|
+
"parameters": {
|
|
40
|
+
"metric": "CHI2",
|
|
41
|
+
"categoricalTarget": true,
|
|
42
|
+
"binningTypeFeatures": "EQUAL_INTERVAL",
|
|
43
|
+
"numBinsFeatures": 5
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
},
|
|
47
|
+
"actions": {
|
|
48
|
+
"comment": "Define an estimator, including the type, algorithm and parameters. Only 1 estimator/transformer may appear in a RASON model.",
|
|
49
|
+
"ufsModel": {
|
|
50
|
+
"comment": "Calls the univariateFSEstimator estimator to fit a model to the myTrainData dataset. One evaluation is requested in the results, statistics. See the RASON Data Science Model Components chapter within the RASON Reference Guide for a list of all options related to the univariate feature.",
|
|
51
|
+
"data": "myTrainData",
|
|
52
|
+
"estimator": "univariateFSEstimator",
|
|
53
|
+
"action": "fit",
|
|
54
|
+
"evaluations": [ "statistics" ]
|
|
55
|
+
},
|
|
56
|
+
"reducedTrainData": {
|
|
57
|
+
"comment": "Uses the ufsModel (created above) to transform the myTrainData dataset, the training partition. Two parameters are set: numTopFeatures (used to determine the variables included in the Top Features Table and Feature Importance Plot) and usePvalueForSelection (if 'True' then variables will be ranked from smallest to largest using the P-value of the measure of the selected statistic (in this case the ChiSquared statistic)). Two evaluations are set: transformation (which returns the transformed model) and topFeaturesInfo (which returns a table containing the top number of features). For a complete list of univariate parameters and evaluations, see the RASON Data Science Model Components chapter within the RASON Reference Guide (downloadable from the Help tab).",
|
|
58
|
+
"data": "myTrainData",
|
|
59
|
+
"fittedModel": "ufsModel",
|
|
60
|
+
"parameters": {
|
|
61
|
+
"numTopFeatures": 2,
|
|
62
|
+
"usePvalueForSelection": true
|
|
63
|
+
},
|
|
64
|
+
"action": "transform",
|
|
65
|
+
"evaluations": [ "transformation", "topFeaturesInfo" ]
|
|
66
|
+
},
|
|
67
|
+
"reducedValidData": {
|
|
68
|
+
"comment": "Uses the ufsModel (created above) to transform the myValidData dataset, the validation partition. Two parameters are set: numTopFeatures and usePvalueForSelection, see above for explanations. Two evaluations are set: transformation and topFeaturesInfo, see above for explanations. For a complete list of univariate parameters and evaluations, see the RASON Data Science Model Components chapter within the RASON Reference Guide (downloadable from the Help tab).",
|
|
69
|
+
"data": "myValidData",
|
|
70
|
+
"fittedModel": "ufsModel",
|
|
71
|
+
"parameters": {
|
|
72
|
+
"numTopFeatures": 2,
|
|
73
|
+
"usePvalueForSelection": false
|
|
74
|
+
},
|
|
75
|
+
"action": "transform",
|
|
76
|
+
"evaluations": [ "transformation", "topFeaturesInfo" ]
|
|
77
|
+
}
|
|
78
|
+
}
|
|
79
|
+
}
|
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
{
|
|
2
|
+
"modelName": "DecisionTreeRegression",
|
|
3
|
+
"modelDescription": "Regression Decision Trees: This RASON model example generates a fitted model and POSTs the model to the RASON server. This example uses two outside data sources, hald-small-train.txt and hald-small-valid.txt. Both may be downloaded by clicking the RASON Examples Download icon (download cloud icon). To solve this model, you must first POST the model to the RASON Server by clicking the POST icon (upload cloud icon on the left). Afterwards click Choose Files (on the Properties pane on the right), browse to the location of the downloaded examples, and select both hald-small-train.txt and hald-small-valid.txt. Then click the down arrow next to the Play icon and click Solve. For more information on POSTing and solving example models, click Help - Defining Your Data Science Model.",
|
|
4
|
+
"modelType": "datamining",
|
|
5
|
+
"datasources": {
|
|
6
|
+
"comment": "Define datasources to use with this model, in the datasources section. Typically these bind to external data sources due to data volume.",
|
|
7
|
+
"myTrainSrc": {
|
|
8
|
+
"comment": "Binds the dataset contained within hald-small-train.txt to the myTrainSrc datasource. This dataset represents the training partition.",
|
|
9
|
+
"type": "csv",
|
|
10
|
+
"connection": "hald-small-train.txt",
|
|
11
|
+
"direction": "import"
|
|
12
|
+
},
|
|
13
|
+
"myValidSrc": {
|
|
14
|
+
"comment": "Binds the dataset contained within hald-small-valid.txt to the myValidSrc datasource. This dataset represents the validation partition.",
|
|
15
|
+
"type": "csv",
|
|
16
|
+
"connection": "hald-small-valid.txt",
|
|
17
|
+
"direction": "import"
|
|
18
|
+
}
|
|
19
|
+
},
|
|
20
|
+
"datasets": {
|
|
21
|
+
"comment": "Datasets are bound to an entry in the 'datasources' section",
|
|
22
|
+
"myTrainData": {
|
|
23
|
+
"comment": "Binds the myTrainSrc datasource to the myTrainData dataset. Note that the target variable is set to the Y variable using the 'targetCol' property.",
|
|
24
|
+
"binding": "myTrainSrc",
|
|
25
|
+
"targetCol": "Y"
|
|
26
|
+
},
|
|
27
|
+
"myValidData": {
|
|
28
|
+
"comment": "Binds the myValidSrc datasource to the myValidData dataset. Note that the target variable is set to the Y variable using the 'targetCol' property.",
|
|
29
|
+
"binding": "myValidSrc",
|
|
30
|
+
"targetCol": "Y"
|
|
31
|
+
}
|
|
32
|
+
},
|
|
33
|
+
"preProcessor": {
|
|
34
|
+
"comment": "This (optional) section may be used for preliminarily data preparation or to compute values of some properties, which are passed later, at parse-time, to the RASON Data Science engine.",
|
|
35
|
+
"numLeafRecords": {
|
|
36
|
+
"comment": "Computes the value for numLeafRecords as the Maximum of 1 and 1.3 (13 rows/10); used in the estimator below as the setting for minNumRecordsInLeaves.",
|
|
37
|
+
"formula": "INT(MAX(1, ROWS(myTrainData) / 10))"
|
|
38
|
+
}
|
|
39
|
+
},
|
|
40
|
+
"estimator": {
|
|
41
|
+
"comment": "Defines an estimator, including the type, algorithm and parameters. Only 1 estimator may appear in a RASON model.",
|
|
42
|
+
"treeEstimator": {
|
|
43
|
+
"comment": "Defines the treeEstimator as a regression decision tree estimator; various options are set. For a complete list of all algorithm options, see the RASON Data Science Model Components chapter in the RASON Reference Guide. (Click the Help tab to download.)",
|
|
44
|
+
"type": "regression",
|
|
45
|
+
"algorithm": "decisionTree",
|
|
46
|
+
"parameters": {
|
|
47
|
+
"minNumRecordsInLeaves": "numLeafRecords",
|
|
48
|
+
"maxNumNodes": 5,
|
|
49
|
+
"maxNumLevels": 3,
|
|
50
|
+
"maxNumSplits": 10,
|
|
51
|
+
"categoricalFeaturesNames": [ "X1" ],
|
|
52
|
+
"prunedTreeType": "BEST_PRUNED"
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
},
|
|
56
|
+
"actions": {
|
|
57
|
+
"comment": "Define actions, evaluations, and data to be used by the estimator created above.",
|
|
58
|
+
"treeModel": {
|
|
59
|
+
"comment": "Fits treeEstimator to myTrainData and myValidData, then POSTS the fitted model in PMML format to the RASON server using export:pmml, which may be used later for scoring new data. Then scores both datasets using the fitted model. For a complete list of all available evaluations, see the RASON Data Science Model Components chapter in the RASON Reference Guide. (Click the Help tab to download.",
|
|
60
|
+
"trainData": "myTrainData",
|
|
61
|
+
"validData": "myValidData",
|
|
62
|
+
"estimator": "treeEstimator",
|
|
63
|
+
"export": "pmml",
|
|
64
|
+
"action": "fit",
|
|
65
|
+
"evaluations": [ "trainingLog", "pruningLog", "featureImportance", "treeRules" ]
|
|
66
|
+
},
|
|
67
|
+
"trainScore": {
|
|
68
|
+
"comment": "Uses the fitted model treeModel to score the training dataset, myTrainData (the training partition) using the 'action':'predict' parameter. Various evaluations are requested in the results including the predicted values, using the evaluations: metrics. For a complete list of all available evaluations, see the Evaluations: Regression - Common Parameters table in the RASON Reference Guide. (Click the Help tab to download.) ",
|
|
69
|
+
"data": "myTrainData",
|
|
70
|
+
"fittedModel": "treeModel",
|
|
71
|
+
"action": "predict",
|
|
72
|
+
"evaluations": [ "prediction", "residuals", "newIntervals", "sse", "ss", "sst", "mse", "rmse", "mad", "r2", "aoc" ]
|
|
73
|
+
},
|
|
74
|
+
"validScore": {
|
|
75
|
+
"comment": "Uses the fitted model treeModel to score the validation dataset, myValidData, (the validation partition) using the 'action':'predict' parameter. Various evaluations are requested in the results including the predicted values (using 'prediction') and multiple statistics (using 'metrics'). Note that 'metrics' evaluation returns sse, ss, sst, mse, rmse, mad, r2 and aoc. For a complete list of all available evaluations, see the Evaluations: Regression - Common Parameters table in the RASON Reference Guide. (Click the Help tab to download.) ",
|
|
76
|
+
"data": "myValidData",
|
|
77
|
+
"fittedModel": "treeModel",
|
|
78
|
+
"action": "predict",
|
|
79
|
+
"evaluations": [ "prediction", "metrics" ]
|
|
80
|
+
}
|
|
81
|
+
}
|
|
82
|
+
}
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
{
|
|
2
|
+
"modelName": "BaggingRegression",
|
|
3
|
+
"modelDescription": "Bagging Regression Example: This RASON model example generates a fitted model and POSTs the model to the RASON server. Then uses the fitted model to score the training partition. This example uses one outside data source, hald-small.txt, which may be downloaded by clicking the RASON Examples Download icon (download cloud icon). To solve this model, you must first POST the model to the RASON Server by clicking the POST icon (upload cloud icon on the left). Afterwards click Choose Files (on the Properties pane on the right), browse to the location of the downloaded examples, and select hald-small.txt. Then click the down arrow next to the Play icon and click Solve. For more information on POSTing and solving example models, click Help - Defining Your Data Science Model.",
|
|
4
|
+
"modelType": "datamining",
|
|
5
|
+
"datasources": {
|
|
6
|
+
"comment": "Define datasources to use with this model, in the datasources section. Typically these bind to external data sources due to data volume.",
|
|
7
|
+
"myTrainSrc": {
|
|
8
|
+
"comment": "Binds the dataset contained within hald-small.txt to the myTrainSrc datasource.",
|
|
9
|
+
"type": "csv",
|
|
10
|
+
"connection": "hald-small.txt",
|
|
11
|
+
"direction": "import"
|
|
12
|
+
}
|
|
13
|
+
},
|
|
14
|
+
"datasets": {
|
|
15
|
+
"comment": "Use the datasets section to bind to an entry in the 'datasources' section",
|
|
16
|
+
"myTrainData": {
|
|
17
|
+
"comment": "Binds the myTrainSrc datasource to the myTrainData dataset. Note that the target variable is set to the Y variable using the 'targetCol' property.",
|
|
18
|
+
"binding": "myTrainSrc",
|
|
19
|
+
"targetCol": "Y"
|
|
20
|
+
}
|
|
21
|
+
},
|
|
22
|
+
"weakLearner": {
|
|
23
|
+
"comment": "This section is only required when a bagging or boosting estimator is specified in 'estimator', and is used to define the weak learner used in the ensemble method.",
|
|
24
|
+
"treeWeakLearner": {
|
|
25
|
+
"comment": "Creates the weaklearner, treeWeakLearner, which selects decision trees as the weak learner and sets one parameter, minNumRecordsInLeaves. This weak learner will be used in the bagging estimator below. See the Rason Data Science Model Components chapter in the RASON Reference Guide, downloadable from the Help tab.",
|
|
26
|
+
"type": "regression",
|
|
27
|
+
"algorithm": "decisionTree",
|
|
28
|
+
"parameters": {
|
|
29
|
+
"minNumRecordsInLeaves": 2
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
},
|
|
33
|
+
"estimator": {
|
|
34
|
+
"comment": "Define an estimator, including the type, algorithm and parameters. Only 1 estimator/transformer may appear in a RASON model.",
|
|
35
|
+
"baggingEstimator": {
|
|
36
|
+
"comment": "Defines the baggingEstimator as a bagging ensemble method estimator which uses the weakLearner above, treeWeakLearner; various options are set. For a complete list of all algorithm options, see the RASON Data Science Components chapter in the RASON Reference Guide. (Click the Help tab to download.)",
|
|
37
|
+
"type": "regression",
|
|
38
|
+
"algorithm": "bagging",
|
|
39
|
+
"parameters": {
|
|
40
|
+
"numWeakLearners": 2,
|
|
41
|
+
"bootstrapSeed": 10
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
},
|
|
45
|
+
"actions": {
|
|
46
|
+
"comment": "Define the actions, evaluations, and data to be used by the estimator defined above.",
|
|
47
|
+
"baggingModel": {
|
|
48
|
+
"comment": "This action fits a model using the myTrainData dataset using the regression bagging ensemble method estimator created above, baggingEstimator. The fitted model is exported to a JSON file for later use. Two evaluations are requested in the result, weakLearnerModels (which returns the model for all weak learners) and numWeakLearners (which returns the number of weak learners). For a list of all available evaluations for Regression - Common Parameters, see the RASON Reference Guide downloadable from the Help tab.",
|
|
49
|
+
"data": "myTrainData",
|
|
50
|
+
"estimator": "baggingEstimator",
|
|
51
|
+
"export": "json",
|
|
52
|
+
"action": "fit",
|
|
53
|
+
"evaluations": [ "weakLearnerModels", "numWeakLearners" ]
|
|
54
|
+
},
|
|
55
|
+
"trainScore": {
|
|
56
|
+
"comment": "This action uses the fitted model, baggingModel, to score the myTrainData dataset (the training partition) using the 'action':'predict' parameter. Various evaluations are requested in the results such as the predicted values and multiple statistics using the 'metrics'' evaluation (which returns sse, ss, sst, mse, rmse, mad, aoc and r2). See Evaluations: Regression - Common Parameters for a list of all evaluations supported. ",
|
|
57
|
+
"data": "myTrainData",
|
|
58
|
+
"fittedModel": "baggingModel",
|
|
59
|
+
"action": "predict",
|
|
60
|
+
"evaluations": [ "prediction", "metrics" ]
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
}
|