@prefix ccdm: <http://cookingbigdata.com/linkeddata/ccdm#> .
@prefix rdf: 		<http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix rdfs: 		<http://www.w3.org/2000/01/rdf-schema#> .
@prefix owl: 		<http://www.w3.org/2002/07/owl#> .
@prefix foaf: 		<http://xmlns.com/foaf/0.1/> .
@prefix dc:			<http://purl.org/dc/terms/> .
@prefix xsd: 		<http://www.w3.org/2001/XMLSchema#> .
@prefix cc: 		<http://creativecommons.org/ns#> .
@prefix mls: <http://www.w3.org/ns/mls#> .

<http://example.org/cc/MLService#RandomForest> a ccdm:MLFunction;	
	dc:created "2017-04-20" ;
	dc:creator "Manuel Parra, Ruben Castro, J. Antonio Cortes" ;
	dc:title "RandomForest" ;
	dc:description "RandomForest implements Breiman’s random forest algorithm (based on Breiman and Cutler’s original Fortran code) for classification and regression. It can also be used in unsupervised mode for assessing proximities among data points." ;
	dc:modified "2018-05-20" ;
	dc:publisher "DICITS_ML" ;
    ccdm:hasInputParameters _:RandomForest_Service_InputParameters ;
    mls:hasInput _:RandomForest_Service_Input ;
    mls:hasOutput _:RandomForest_Service_Output	
	.
	
_:RandomForest_Service_Input a ccdm:MLServiceInput ;
    ccdm:contains _:contains_dataset_01 ;
    dc:description "Input data contains Dataset or Feature/s" ;
    dc:title "InputDataSet" 
	.	

_:contains_dataset_01 a ccdm:contains ;
    mls:Data _:dataset_01 
	.

_:dataset_01  a mls:DataSet ;
    ccdm:format _:ParameterFormat_CVS_00 ;
    ccdm:mandatory "true" ;
    ccdm:storagebucket "dicits://" ;
    dc:description "Dataset on which the service is applied" ;
    dc:title "DataSet" 
	.

_:ParameterFormat_CVS_00 a ccdm:csv ;
	dc:description "CSV Source file format" 
	.

_:RandomForest_Service_Output a ccdm:MLServiceOutput ;
    dc:description "Output of the service contains Model or ModelEvaluation or Data" ;
    mls:Model _:RandomForest_Model ;
    mls:ModelEvaluation _:RandomForest_ModelEvaluation 
	.

_:RandomForest_Model a ccdm:PMML_Model ;
    ccdm:storagebucket "dicits://models/" ;
    dc:description "PMML model to represent mining models" ;
    dc:title "PMML Model related" 
	.

_:RandomForest_ModelEvaluation a ccdm:ModelEvaluation ;
    ccdm:storagebucket "dicits://modelevaluation/" ;
    dc:description "Model Evaluation" ;
    dc:title "Model evaluation" 
	.


_:RandomForest_Service_InputParameters a ccdm:MLServiceInputParameters;
	dc:description "Input Parameters" ;
	dc:title "Input" ;    
	ccdm:Parameters _:response_parameter_01,
	                _:response_parameter_02,
                    _:response_parameter_03;
	.
	
_:response_parameter_01 a ccdm:MLServiceInputParameter ;
	ccdm:defaultvalue "" ;
    ccdm:mandatory "false" ;
    dc:description "Number of trees to grow. This should not be set to too small a number, to ensure that every input row gets predicted at least a few times." ;
    dc:title "ntree"
	.

_:response_parameter_02 a ccdm:MLServiceInputParameter ;
	ccdm:defaultvalue "" ;
    ccdm:mandatory "false" ;
    dc:description "A function to specify the action to be taken if NAs are found. (NOTE: If given, this argument must be named.)" ;
    dc:title "na.action"
	.

_:response_parameter_03 a ccdm:MLServiceInputParameter ;
	ccdm:defaultvalue "" ;
    ccdm:mandatory "false" ;
    dc:description "Maximum number of terminal nodes trees in the forest can have. If not given, trees are grown to the maximum possible (subject to limits by nodesize). If set larger than maximum possible, a warning is issued." ;
    dc:title "maxnodes"
		.