bigml-nodered-core
Version:
BigML bindings for Node-RED
212 lines (174 loc) • 437 kB
JavaScript
// Compiled by ClojureScript 1.10.520 {:target :nodejs}
goog.provide('bigml_nodered_core.resources');
goog.require('cljs.core');
goog.require('bigml_nodered_core.wz');
goog.require('bigml_nodered_core.wz.tasks');
goog.require('bigml_nodered_core.wz.marshal');
goog.require('bigml_nodered_core.utils');
bigml_nodered_core.resources.create_resource = (function bigml_nodered_core$resources$create_resource(t,fun){
var name = ["create-",cljs.core.str.cljs$core$IFn$_invoke$arity$1(t)].join('');
return ((function (name){
return (function (n,inputs,outputs,msg,in_pars,out_pars){
return fun.call(null,name,cljs.core.assoc.call(null,inputs,"resource-type",t),outputs,msg,in_pars,out_pars);
});
;})(name))
});
bigml_nodered_core.resources.export_nodes = (function bigml_nodered_core$resources$export_nodes(nodes){
return cljs.core.reduce_kv.call(null,(function (r,k,v){
return cljs.core.assoc.call(null,r,k,cljs.core.first.call(null,v));
}),cljs.core.PersistentArrayMap.EMPTY,nodes);
});
bigml_nodered_core.resources.create_nodes = (function bigml_nodered_core$resources$create_nodes(){
return cljs.core.PersistentHashMap.fromArrays(["forecast","anomalyscore","association","fusion","model","dataset","cluster","deepnet","batchcentroid","timeseries","project","execution","ensemble","batchanomalyscore","optiml","logisticregression","script","evaluation","topicdistribution","associationset","prediction","batchdistribution","library","topicmodel","centroid","anomaly","batchprediction"],[(function (){
bigml_nodered_core.resources.forecast_opts_fun = (function bigml_nodered_core$resources$create_nodes_$_forecast_opts_fun(config__2062__auto__,payload__2063__auto__){
var config__2062__auto____$1 = cljs.core.merge.call(null,config__2062__auto__,payload__2063__auto__);
return cljs.core.into.call(null,cljs.core.PersistentArrayMap.EMPTY,cljs.core.map.call(null,((function (config__2062__auto____$1){
return (function (p__2671){
var vec__2672 = p__2671;
var field__2064__auto__ = cljs.core.nth.call(null,vec__2672,(0),null);
var def__2065__auto__ = cljs.core.nth.call(null,vec__2672,(1),null);
var k__2066__auto__ = bigml_nodered_core.utils.escape_api_name.call(null,field__2064__auto__);
var f__2067__auto__ = (function (){var or__4131__auto__ = new cljs.core.Keyword(null,"query-key","query-key",773371971).cljs$core$IFn$_invoke$arity$1(def__2065__auto__);
if(cljs.core.truth_(or__4131__auto__)){
return or__4131__auto__;
} else {
return k__2066__auto__;
}
})();
var v__2068__auto__ = bigml_nodered_core.utils.cast_config_type.call(null,new cljs.core.Keyword(null,"type","type",1174270348).cljs$core$IFn$_invoke$arity$1(def__2065__auto__),cljs.core.get.call(null,config__2062__auto____$1,k__2066__auto__));
return new cljs.core.PersistentVector(null, 2, 5, cljs.core.PersistentVector.EMPTY_NODE, [f__2067__auto__,v__2068__auto__], null);
});})(config__2062__auto____$1))
,cljs.core.filter.call(null,((function (config__2062__auto____$1){
return (function (p__2675){
var vec__2676 = p__2675;
var field__2064__auto__ = cljs.core.nth.call(null,vec__2676,(0),null);
var def__2065__auto__ = cljs.core.nth.call(null,vec__2676,(1),null);
var k__2066__auto__ = bigml_nodered_core.utils.escape_api_name.call(null,field__2064__auto__);
var void_val__2069__auto__ = new cljs.core.Keyword(null,"void-if","void-if",-625004048).cljs$core$IFn$_invoke$arity$1(def__2065__auto__);
var config_val__2070__auto__ = cljs.core.get.call(null,config__2062__auto____$1,k__2066__auto__);
return ((cljs.core.not.call(null,new cljs.core.Keyword(null,"internal","internal",-854870097).cljs$core$IFn$_invoke$arity$1(def__2065__auto__))) && ((!((config_val__2070__auto__ == null)))) && (cljs.core.not_EQ_.call(null,config_val__2070__auto__,"")) && (cljs.core.not_EQ_.call(null,void_val__2069__auto__,config_val__2070__auto__)));
});})(config__2062__auto____$1))
,new cljs.core.PersistentVector(null, 7, 5, cljs.core.PersistentVector.EMPTY_NODE, [new cljs.core.PersistentVector(null, 2, 5, cljs.core.PersistentVector.EMPTY_NODE, ["Name",new cljs.core.PersistentArrayMap(null, 4, [new cljs.core.Keyword(null,"type","type",1174270348),new cljs.core.Keyword(null,"text","text",-1790561697),new cljs.core.Keyword(null,"value","value",305978217),"forecast",new cljs.core.Keyword(null,"help","help",-439233446),"A name for this node.",new cljs.core.Keyword(null,"required","required",1807647006),true], null)], null),new cljs.core.PersistentVector(null, 2, 5, cljs.core.PersistentVector.EMPTY_NODE, ["Description",new cljs.core.PersistentArrayMap(null, 3, [new cljs.core.Keyword(null,"type","type",1174270348),new cljs.core.Keyword(null,"text","text",-1790561697),new cljs.core.Keyword(null,"value","value",305978217),"",new cljs.core.Keyword(null,"void-if","void-if",-625004048),""], null)], null),new cljs.core.PersistentVector(null, 2, 5, cljs.core.PersistentVector.EMPTY_NODE, ["Intervals",new cljs.core.PersistentArrayMap(null, 6, [new cljs.core.Keyword(null,"type","type",1174270348),new cljs.core.Keyword(null,"boolean","boolean",-1919418404),new cljs.core.Keyword(null,"query-key","query-key",773371971),"intervals",new cljs.core.Keyword(null,"value","value",305978217),true,new cljs.core.Keyword(null,"void-if","void-if",-625004048),true,new cljs.core.Keyword(null,"placeholder","placeholder",-104873083),null,new cljs.core.Keyword(null,"help","help",-439233446),"Include the lower and upper confidence bounds for the forecast that are calculated."], null)], null),new cljs.core.PersistentVector(null, 2, 5, cljs.core.PersistentVector.EMPTY_NODE, ["Tags",new cljs.core.PersistentArrayMap(null, 5, [new cljs.core.Keyword(null,"type","type",1174270348),new cljs.core.Keyword(null,"text","text",-1790561697),new cljs.core.Keyword(null,"value","value",305978217),"",new cljs.core.Keyword(null,"placeholder","placeholder",-104873083),"[\"A tag\", \"Another Tag\"]",new cljs.core.Keyword(null,"void-if","void-if",-625004048),"",new cljs.core.Keyword(null,"help","help",-439233446),"A list of tags to identify the resource."], null)], null),new cljs.core.PersistentVector(null, 2, 5, cljs.core.PersistentVector.EMPTY_NODE, ["Category",new cljs.core.PersistentArrayMap(null, 4, [new cljs.core.Keyword(null,"type","type",1174270348),new cljs.core.Keyword(null,"select","select",1147833503),new cljs.core.Keyword(null,"opts","opts",155075701),new cljs.core.PersistentVector(null, 2, 5, cljs.core.PersistentVector.EMPTY_NODE, [(5),"Healthcare"], null),new cljs.core.Keyword(null,"value","value",305978217),(0),new cljs.core.Keyword(null,"void-if","void-if",-625004048),(0)], null)], null),new cljs.core.PersistentVector(null, 2, 5, cljs.core.PersistentVector.EMPTY_NODE, ["Webhook",new cljs.core.PersistentArrayMap(null, 4, [new cljs.core.Keyword(null,"type","type",1174270348),new cljs.core.Keyword(null,"text","text",-1790561697),new cljs.core.Keyword(null,"value","value",305978217),"",new cljs.core.Keyword(null,"void-if","void-if",-625004048),"",new cljs.core.Keyword(null,"help","help",-439233446),"A webhook url and an optional secret phrase."], null)], null),new cljs.core.PersistentVector(null, 2, 5, cljs.core.PersistentVector.EMPTY_NODE, ["Reify",new cljs.core.PersistentArrayMap(null, 4, [new cljs.core.Keyword(null,"type","type",1174270348),new cljs.core.Keyword(null,"boolean","boolean",-1919418404),new cljs.core.Keyword(null,"value","value",305978217),false,new cljs.core.Keyword(null,"internal","internal",-854870097),true,new cljs.core.Keyword(null,"help","help",-439233446),"Execute the WhizzML code generated at this (and upstream) node(s). You need to enable this option if you want to get a result from your flow that you can pass to a non-BigML node."], null)], null)], null))));
});
bigml_nodered_core.resources.forecast_io_fun = (function bigml_nodered_core$resources$create_nodes_$_forecast_io_fun(){
return new cljs.core.PersistentVector(null, 2, 5, cljs.core.PersistentVector.EMPTY_NODE, [new cljs.core.PersistentVector(null, 2, 5, cljs.core.PersistentVector.EMPTY_NODE, ["timeseries","input-data"], null),new cljs.core.PersistentVector(null, 1, 5, cljs.core.PersistentVector.EMPTY_NODE, ["forecast"], null)], null);
});
bigml_nodered_core.resources.forecast_node_fun = (function bigml_nodered_core$resources$create_nodes_$_forecast_node_fun(node__2071__auto__,config__2062__auto__,red__2072__auto__){
return bigml_nodered_core.wz.node_fun.call(null,bigml_nodered_core.resources.create_resource.call(null,bigml_nodered_core.utils.escape_string.call(null,cljs.core.first.call(null,new cljs.core.PersistentVector(null, 2, 5, cljs.core.PersistentVector.EMPTY_NODE, ["Forecast",new cljs.core.PersistentArrayMap(null, 3, [new cljs.core.Keyword(null,"in","in",-1531184865),new cljs.core.PersistentVector(null, 2, 5, cljs.core.PersistentVector.EMPTY_NODE, ["timeseries","input-data"], null),new cljs.core.Keyword(null,"out","out",-910545517),new cljs.core.PersistentVector(null, 1, 5, cljs.core.PersistentVector.EMPTY_NODE, ["forecast"], null),new cljs.core.Keyword(null,"fn","fn",-1175266204),bigml_nodered_core.wz.tasks.wz_predict], null)], null))),new cljs.core.Keyword(null,"fn","fn",-1175266204).cljs$core$IFn$_invoke$arity$1(cljs.core.last.call(null,new cljs.core.PersistentVector(null, 2, 5, cljs.core.PersistentVector.EMPTY_NODE, ["Forecast",new cljs.core.PersistentArrayMap(null, 3, [new cljs.core.Keyword(null,"in","in",-1531184865),new cljs.core.PersistentVector(null, 2, 5, cljs.core.PersistentVector.EMPTY_NODE, ["timeseries","input-data"], null),new cljs.core.Keyword(null,"out","out",-910545517),new cljs.core.PersistentVector(null, 1, 5, cljs.core.PersistentVector.EMPTY_NODE, ["forecast"], null),new cljs.core.Keyword(null,"fn","fn",-1175266204),bigml_nodered_core.wz.tasks.wz_predict], null)], null)))),bigml_nodered_core.resources.forecast_opts_fun,bigml_nodered_core.resources.forecast_io_fun,node__2071__auto__,config__2062__auto__,red__2072__auto__);
});
return new cljs.core.PersistentVector(null, 3, 5, cljs.core.PersistentVector.EMPTY_NODE, [bigml_nodered_core.resources.forecast_node_fun,bigml_nodered_core.resources.forecast_opts_fun,bigml_nodered_core.resources.forecast_io_fun], null);
})()
,(function (){
bigml_nodered_core.resources.anomaly_score_opts_fun = (function bigml_nodered_core$resources$create_nodes_$_anomaly_score_opts_fun(config__2062__auto__,payload__2063__auto__){
var config__2062__auto____$1 = cljs.core.merge.call(null,config__2062__auto__,payload__2063__auto__);
return cljs.core.into.call(null,cljs.core.PersistentArrayMap.EMPTY,cljs.core.map.call(null,((function (config__2062__auto____$1){
return (function (p__2679){
var vec__2680 = p__2679;
var field__2064__auto__ = cljs.core.nth.call(null,vec__2680,(0),null);
var def__2065__auto__ = cljs.core.nth.call(null,vec__2680,(1),null);
var k__2066__auto__ = bigml_nodered_core.utils.escape_api_name.call(null,field__2064__auto__);
var f__2067__auto__ = (function (){var or__4131__auto__ = new cljs.core.Keyword(null,"query-key","query-key",773371971).cljs$core$IFn$_invoke$arity$1(def__2065__auto__);
if(cljs.core.truth_(or__4131__auto__)){
return or__4131__auto__;
} else {
return k__2066__auto__;
}
})();
var v__2068__auto__ = bigml_nodered_core.utils.cast_config_type.call(null,new cljs.core.Keyword(null,"type","type",1174270348).cljs$core$IFn$_invoke$arity$1(def__2065__auto__),cljs.core.get.call(null,config__2062__auto____$1,k__2066__auto__));
return new cljs.core.PersistentVector(null, 2, 5, cljs.core.PersistentVector.EMPTY_NODE, [f__2067__auto__,v__2068__auto__], null);
});})(config__2062__auto____$1))
,cljs.core.filter.call(null,((function (config__2062__auto____$1){
return (function (p__2683){
var vec__2684 = p__2683;
var field__2064__auto__ = cljs.core.nth.call(null,vec__2684,(0),null);
var def__2065__auto__ = cljs.core.nth.call(null,vec__2684,(1),null);
var k__2066__auto__ = bigml_nodered_core.utils.escape_api_name.call(null,field__2064__auto__);
var void_val__2069__auto__ = new cljs.core.Keyword(null,"void-if","void-if",-625004048).cljs$core$IFn$_invoke$arity$1(def__2065__auto__);
var config_val__2070__auto__ = cljs.core.get.call(null,config__2062__auto____$1,k__2066__auto__);
return ((cljs.core.not.call(null,new cljs.core.Keyword(null,"internal","internal",-854870097).cljs$core$IFn$_invoke$arity$1(def__2065__auto__))) && ((!((config_val__2070__auto__ == null)))) && (cljs.core.not_EQ_.call(null,config_val__2070__auto__,"")) && (cljs.core.not_EQ_.call(null,void_val__2069__auto__,config_val__2070__auto__)));
});})(config__2062__auto____$1))
,new cljs.core.PersistentVector(null, 6, 5, cljs.core.PersistentVector.EMPTY_NODE, [new cljs.core.PersistentVector(null, 2, 5, cljs.core.PersistentVector.EMPTY_NODE, ["Name",new cljs.core.PersistentArrayMap(null, 4, [new cljs.core.Keyword(null,"type","type",1174270348),new cljs.core.Keyword(null,"text","text",-1790561697),new cljs.core.Keyword(null,"value","value",305978217),"anomalyscore",new cljs.core.Keyword(null,"help","help",-439233446),"A name for this node.",new cljs.core.Keyword(null,"required","required",1807647006),true], null)], null),new cljs.core.PersistentVector(null, 2, 5, cljs.core.PersistentVector.EMPTY_NODE, ["Description",new cljs.core.PersistentArrayMap(null, 3, [new cljs.core.Keyword(null,"type","type",1174270348),new cljs.core.Keyword(null,"text","text",-1790561697),new cljs.core.Keyword(null,"value","value",305978217),"",new cljs.core.Keyword(null,"void-if","void-if",-625004048),""], null)], null),new cljs.core.PersistentVector(null, 2, 5, cljs.core.PersistentVector.EMPTY_NODE, ["Tags",new cljs.core.PersistentArrayMap(null, 5, [new cljs.core.Keyword(null,"type","type",1174270348),new cljs.core.Keyword(null,"text","text",-1790561697),new cljs.core.Keyword(null,"value","value",305978217),"",new cljs.core.Keyword(null,"placeholder","placeholder",-104873083),"[\"A tag\", \"Another Tag\"]",new cljs.core.Keyword(null,"void-if","void-if",-625004048),"",new cljs.core.Keyword(null,"help","help",-439233446),"A list of tags to identify the resource."], null)], null),new cljs.core.PersistentVector(null, 2, 5, cljs.core.PersistentVector.EMPTY_NODE, ["Category",new cljs.core.PersistentArrayMap(null, 4, [new cljs.core.Keyword(null,"type","type",1174270348),new cljs.core.Keyword(null,"select","select",1147833503),new cljs.core.Keyword(null,"opts","opts",155075701),new cljs.core.PersistentVector(null, 2, 5, cljs.core.PersistentVector.EMPTY_NODE, [(5),"Healthcare"], null),new cljs.core.Keyword(null,"value","value",305978217),(0),new cljs.core.Keyword(null,"void-if","void-if",-625004048),(0)], null)], null),new cljs.core.PersistentVector(null, 2, 5, cljs.core.PersistentVector.EMPTY_NODE, ["Webhook",new cljs.core.PersistentArrayMap(null, 4, [new cljs.core.Keyword(null,"type","type",1174270348),new cljs.core.Keyword(null,"text","text",-1790561697),new cljs.core.Keyword(null,"value","value",305978217),"",new cljs.core.Keyword(null,"void-if","void-if",-625004048),"",new cljs.core.Keyword(null,"help","help",-439233446),"A webhook url and an optional secret phrase."], null)], null),new cljs.core.PersistentVector(null, 2, 5, cljs.core.PersistentVector.EMPTY_NODE, ["Reify",new cljs.core.PersistentArrayMap(null, 4, [new cljs.core.Keyword(null,"type","type",1174270348),new cljs.core.Keyword(null,"boolean","boolean",-1919418404),new cljs.core.Keyword(null,"value","value",305978217),false,new cljs.core.Keyword(null,"internal","internal",-854870097),true,new cljs.core.Keyword(null,"help","help",-439233446),"Execute the WhizzML code generated at this (and upstream) node(s). You need to enable this option if you want to get a result from your flow that you can pass to a non-BigML node."], null)], null)], null))));
});
bigml_nodered_core.resources.anomaly_score_io_fun = (function bigml_nodered_core$resources$create_nodes_$_anomaly_score_io_fun(){
return new cljs.core.PersistentVector(null, 2, 5, cljs.core.PersistentVector.EMPTY_NODE, [new cljs.core.PersistentVector(null, 2, 5, cljs.core.PersistentVector.EMPTY_NODE, ["anomaly","input-data"], null),new cljs.core.PersistentVector(null, 1, 5, cljs.core.PersistentVector.EMPTY_NODE, ["anomalyscore"], null)], null);
});
bigml_nodered_core.resources.anomaly_score_node_fun = (function bigml_nodered_core$resources$create_nodes_$_anomaly_score_node_fun(node__2071__auto__,config__2062__auto__,red__2072__auto__){
return bigml_nodered_core.wz.node_fun.call(null,bigml_nodered_core.resources.create_resource.call(null,bigml_nodered_core.utils.escape_string.call(null,cljs.core.first.call(null,new cljs.core.PersistentVector(null, 2, 5, cljs.core.PersistentVector.EMPTY_NODE, ["Anomaly Score",new cljs.core.PersistentArrayMap(null, 3, [new cljs.core.Keyword(null,"in","in",-1531184865),new cljs.core.PersistentVector(null, 2, 5, cljs.core.PersistentVector.EMPTY_NODE, ["anomaly","input-data"], null),new cljs.core.Keyword(null,"out","out",-910545517),new cljs.core.PersistentVector(null, 1, 5, cljs.core.PersistentVector.EMPTY_NODE, ["anomalyscore"], null),new cljs.core.Keyword(null,"fn","fn",-1175266204),bigml_nodered_core.wz.tasks.wz_train], null)], null))),new cljs.core.Keyword(null,"fn","fn",-1175266204).cljs$core$IFn$_invoke$arity$1(cljs.core.last.call(null,new cljs.core.PersistentVector(null, 2, 5, cljs.core.PersistentVector.EMPTY_NODE, ["Anomaly Score",new cljs.core.PersistentArrayMap(null, 3, [new cljs.core.Keyword(null,"in","in",-1531184865),new cljs.core.PersistentVector(null, 2, 5, cljs.core.PersistentVector.EMPTY_NODE, ["anomaly","input-data"], null),new cljs.core.Keyword(null,"out","out",-910545517),new cljs.core.PersistentVector(null, 1, 5, cljs.core.PersistentVector.EMPTY_NODE, ["anomalyscore"], null),new cljs.core.Keyword(null,"fn","fn",-1175266204),bigml_nodered_core.wz.tasks.wz_train], null)], null)))),bigml_nodered_core.resources.anomaly_score_opts_fun,bigml_nodered_core.resources.anomaly_score_io_fun,node__2071__auto__,config__2062__auto__,red__2072__auto__);
});
return new cljs.core.PersistentVector(null, 3, 5, cljs.core.PersistentVector.EMPTY_NODE, [bigml_nodered_core.resources.anomaly_score_node_fun,bigml_nodered_core.resources.anomaly_score_opts_fun,bigml_nodered_core.resources.anomaly_score_io_fun], null);
})()
,(function (){
bigml_nodered_core.resources.association_opts_fun = (function bigml_nodered_core$resources$create_nodes_$_association_opts_fun(config__2062__auto__,payload__2063__auto__){
var config__2062__auto____$1 = cljs.core.merge.call(null,config__2062__auto__,payload__2063__auto__);
return cljs.core.into.call(null,cljs.core.PersistentArrayMap.EMPTY,cljs.core.map.call(null,((function (config__2062__auto____$1){
return (function (p__2687){
var vec__2688 = p__2687;
var field__2064__auto__ = cljs.core.nth.call(null,vec__2688,(0),null);
var def__2065__auto__ = cljs.core.nth.call(null,vec__2688,(1),null);
var k__2066__auto__ = bigml_nodered_core.utils.escape_api_name.call(null,field__2064__auto__);
var f__2067__auto__ = (function (){var or__4131__auto__ = new cljs.core.Keyword(null,"query-key","query-key",773371971).cljs$core$IFn$_invoke$arity$1(def__2065__auto__);
if(cljs.core.truth_(or__4131__auto__)){
return or__4131__auto__;
} else {
return k__2066__auto__;
}
})();
var v__2068__auto__ = bigml_nodered_core.utils.cast_config_type.call(null,new cljs.core.Keyword(null,"type","type",1174270348).cljs$core$IFn$_invoke$arity$1(def__2065__auto__),cljs.core.get.call(null,config__2062__auto____$1,k__2066__auto__));
return new cljs.core.PersistentVector(null, 2, 5, cljs.core.PersistentVector.EMPTY_NODE, [f__2067__auto__,v__2068__auto__], null);
});})(config__2062__auto____$1))
,cljs.core.filter.call(null,((function (config__2062__auto____$1){
return (function (p__2691){
var vec__2692 = p__2691;
var field__2064__auto__ = cljs.core.nth.call(null,vec__2692,(0),null);
var def__2065__auto__ = cljs.core.nth.call(null,vec__2692,(1),null);
var k__2066__auto__ = bigml_nodered_core.utils.escape_api_name.call(null,field__2064__auto__);
var void_val__2069__auto__ = new cljs.core.Keyword(null,"void-if","void-if",-625004048).cljs$core$IFn$_invoke$arity$1(def__2065__auto__);
var config_val__2070__auto__ = cljs.core.get.call(null,config__2062__auto____$1,k__2066__auto__);
return ((cljs.core.not.call(null,new cljs.core.Keyword(null,"internal","internal",-854870097).cljs$core$IFn$_invoke$arity$1(def__2065__auto__))) && ((!((config_val__2070__auto__ == null)))) && (cljs.core.not_EQ_.call(null,config_val__2070__auto__,"")) && (cljs.core.not_EQ_.call(null,void_val__2069__auto__,config_val__2070__auto__)));
});})(config__2062__auto____$1))
,new cljs.core.PersistentVector(null, 28, 5, cljs.core.PersistentVector.EMPTY_NODE, [new cljs.core.PersistentVector(null, 2, 5, cljs.core.PersistentVector.EMPTY_NODE, ["Name",new cljs.core.PersistentArrayMap(null, 4, [new cljs.core.Keyword(null,"type","type",1174270348),new cljs.core.Keyword(null,"text","text",-1790561697),new cljs.core.Keyword(null,"value","value",305978217),"association",new cljs.core.Keyword(null,"help","help",-439233446),"A name for this node.",new cljs.core.Keyword(null,"required","required",1807647006),true], null)], null),new cljs.core.PersistentVector(null, 2, 5, cljs.core.PersistentVector.EMPTY_NODE, ["Description",new cljs.core.PersistentArrayMap(null, 3, [new cljs.core.Keyword(null,"type","type",1174270348),new cljs.core.Keyword(null,"text","text",-1790561697),new cljs.core.Keyword(null,"value","value",305978217),"",new cljs.core.Keyword(null,"void-if","void-if",-625004048),""], null)], null),new cljs.core.PersistentVector(null, 2, 5, cljs.core.PersistentVector.EMPTY_NODE, ["Complement",new cljs.core.PersistentArrayMap(null, 6, [new cljs.core.Keyword(null,"type","type",1174270348),new cljs.core.Keyword(null,"boolean","boolean",-1919418404),new cljs.core.Keyword(null,"query-key","query-key",773371971),"complement",new cljs.core.Keyword(null,"value","value",305978217),false,new cljs.core.Keyword(null,"void-if","void-if",-625004048),false,new cljs.core.Keyword(null,"placeholder","placeholder",-104873083),null,new cljs.core.Keyword(null,"help","help",-439233446),"If complement is true, complementary items are also taken into account."], null)], null),new cljs.core.PersistentVector(null, 2, 5, cljs.core.PersistentVector.EMPTY_NODE, ["Default numeric value",new cljs.core.PersistentArrayMap(null, 5, [new cljs.core.Keyword(null,"value","value",305978217),"none",new cljs.core.Keyword(null,"type","type",1174270348),new cljs.core.Keyword(null,"select","select",1147833503),new cljs.core.Keyword(null,"void-if","void-if",-625004048),"none",new cljs.core.Keyword(null,"opts","opts",155075701),new cljs.core.PersistentVector(null, 6, 5, cljs.core.PersistentVector.EMPTY_NODE, [new cljs.core.PersistentVector(null, 2, 5, cljs.core.PersistentVector.EMPTY_NODE, ["none","None"], null),new cljs.core.PersistentVector(null, 2, 5, cljs.core.PersistentVector.EMPTY_NODE, ["mean","Mean"], null),new cljs.core.PersistentVector(null, 2, 5, cljs.core.PersistentVector.EMPTY_NODE, ["median","Median"], null),new cljs.core.PersistentVector(null, 2, 5, cljs.core.PersistentVector.EMPTY_NODE, ["minimum","Minimum"], null),new cljs.core.PersistentVector(null, 2, 5, cljs.core.PersistentVector.EMPTY_NODE, ["maximum","Maximum"], null),new cljs.core.PersistentVector(null, 2, 5, cljs.core.PersistentVector.EMPTY_NODE, ["zero","Zero"], null)], null),new cljs.core.Keyword(null,"help","help",-439233446),"Substitute missing numeric values across all the numeric fields in the dataset."], null)], null),new cljs.core.PersistentVector(null, 2, 5, cljs.core.PersistentVector.EMPTY_NODE, ["Discretization",new cljs.core.PersistentArrayMap(null, 6, [new cljs.core.Keyword(null,"type","type",1174270348),new cljs.core.Keyword(null,"json","json",1279968570),new cljs.core.Keyword(null,"query-key","query-key",773371971),"discretization",new cljs.core.Keyword(null,"value","value",305978217),"",new cljs.core.Keyword(null,"void-if","void-if",-625004048),"",new cljs.core.Keyword(null,"placeholder","placeholder",-104873083),null,new cljs.core.Keyword(null,"help","help",-439233446),"Global numeric field transformation parameters. See the discretization table below."], null)], null),new cljs.core.PersistentVector(null, 2, 5, cljs.core.PersistentVector.EMPTY_NODE, ["Excluded fields",new cljs.core.PersistentArrayMap(null, 5, [new cljs.core.Keyword(null,"placeholder","placeholder",-104873083),"[\"000000\", \"000002\"]",new cljs.core.Keyword(null,"value","value",305978217),"",new cljs.core.Keyword(null,"type","type",1174270348),new cljs.core.Keyword(null,"text","text",-1790561697),new cljs.core.Keyword(null,"void-if","void-if",-625004048),"",new cljs.core.Keyword(null,"help","help",-439233446),"Specifies the fields that won't be included in the dataset."], null)], null),new cljs.core.PersistentVector(null, 2, 5, cljs.core.PersistentVector.EMPTY_NODE, ["Field discretizations",new cljs.core.PersistentArrayMap(null, 6, [new cljs.core.Keyword(null,"type","type",1174270348),new cljs.core.Keyword(null,"json","json",1279968570),new cljs.core.Keyword(null,"query-key","query-key",773371971),"field_discretizations",new cljs.core.Keyword(null,"value","value",305978217),"",new cljs.core.Keyword(null,"void-if","void-if",-625004048),"",new cljs.core.Keyword(null,"placeholder","placeholder",-104873083),null,new cljs.core.Keyword(null,"help","help",-439233446),"Per-field numeric field transformation parameters, taking precedence over discretization."], null)], null),new cljs.core.PersistentVector(null, 2, 5, cljs.core.PersistentVector.EMPTY_NODE, ["Fields",new cljs.core.PersistentArrayMap(null, 5, [new cljs.core.Keyword(null,"placeholder","placeholder",-104873083),"{ \"000000\": { \"name\": \"length_1\", \"label\": \"Length 1\", \"description\": \"Length 1 is sepal length\"}, \"000002\": {\"name\": \"length_2\"}}",new cljs.core.Keyword(null,"value","value",305978217),"",new cljs.core.Keyword(null,"type","type",1174270348),new cljs.core.Keyword(null,"text","text",-1790561697),new cljs.core.Keyword(null,"void-if","void-if",-625004048),"",new cljs.core.Keyword(null,"help","help",-439233446),"Updates the names, labels, and descriptions of the fields in the dataset."], null)], null),new cljs.core.PersistentVector(null, 2, 5, cljs.core.PersistentVector.EMPTY_NODE, ["Input fields",new cljs.core.PersistentArrayMap(null, 5, [new cljs.core.Keyword(null,"placeholder","placeholder",-104873083),"[\"000000\", \"000003\"]",new cljs.core.Keyword(null,"value","value",305978217),"",new cljs.core.Keyword(null,"type","type",1174270348),new cljs.core.Keyword(null,"text","text",-1790561697),new cljs.core.Keyword(null,"void-if","void-if",-625004048),"",new cljs.core.Keyword(null,"help","help",-439233446),"Specifies the fields to be included in the dataset."], null)], null),new cljs.core.PersistentVector(null, 2, 5, cljs.core.PersistentVector.EMPTY_NODE, ["Max K",new cljs.core.PersistentArrayMap(null, 5, [new cljs.core.Keyword(null,"placeholder","placeholder",-104873083),null,new cljs.core.Keyword(null,"value","value",305978217),(100),new cljs.core.Keyword(null,"type","type",1174270348),new cljs.core.Keyword(null,"number","number",1570378438),new cljs.core.Keyword(null,"void-if","void-if",-625004048),(100),new cljs.core.Keyword(null,"help","help",-439233446),"The maximum number of associations to be discovered."], null)], null),new cljs.core.PersistentVector(null, 2, 5, cljs.core.PersistentVector.EMPTY_NODE, ["Max LHS",new cljs.core.PersistentArrayMap(null, 6, [new cljs.core.Keyword(null,"type","type",1174270348),new cljs.core.Keyword(null,"number","number",1570378438),new cljs.core.Keyword(null,"query-key","query-key",773371971),"max_lhs",new cljs.core.Keyword(null,"value","value",305978217),(4),new cljs.core.Keyword(null,"void-if","void-if",-625004048),(4),new cljs.core.Keyword(null,"placeholder","placeholder",-104873083),null,new cljs.core.Keyword(null,"help","help",-439233446),"The maximum number of items to be considered within the left-hand-side itemset."], null)], null),new cljs.core.PersistentVector(null, 2, 5, cljs.core.PersistentVector.EMPTY_NODE, ["Min confidence",new cljs.core.PersistentArrayMap(null, 6, [new cljs.core.Keyword(null,"type","type",1174270348),new cljs.core.Keyword(null,"float","float",-1732389368),new cljs.core.Keyword(null,"query-key","query-key",773371971),"min_confidence",new cljs.core.Keyword(null,"value","value",305978217),0.0,new cljs.core.Keyword(null,"void-if","void-if",-625004048),0.0,new cljs.core.Keyword(null,"placeholder","placeholder",-104873083),null,new cljs.core.Keyword(null,"help","help",-439233446),"A real number between 0 and 1 specifying the minimum confidence for the rules discovered."], null)], null),new cljs.core.PersistentVector(null, 2, 5, cljs.core.PersistentVector.EMPTY_NODE, ["Min leverage",new cljs.core.PersistentArrayMap(null, 6, [new cljs.core.Keyword(null,"type","type",1174270348),new cljs.core.Keyword(null,"float","float",-1732389368),new cljs.core.Keyword(null,"query-key","query-key",773371971),"min_leverage",new cljs.core.Keyword(null,"value","value",305978217),(0),new cljs.core.Keyword(null,"void-if","void-if",-625004048),(0),new cljs.core.Keyword(null,"placeholder","placeholder",-104873083),null,new cljs.core.Keyword(null,"help","help",-439233446),"A real number between -1 and 1 specifying the minimum leverage for the rules discovered."], null)], null),new cljs.core.PersistentVector(null, 2, 5, cljs.core.PersistentVector.EMPTY_NODE, ["Min lift",new cljs.core.PersistentArrayMap(null, 6, [new cljs.core.Keyword(null,"type","type",1174270348),new cljs.core.Keyword(null,"float","float",-1732389368),new cljs.core.Keyword(null,"query-key","query-key",773371971),"min_lift",new cljs.core.Keyword(null,"value","value",305978217),1.0,new cljs.core.Keyword(null,"void-if","void-if",-625004048),1.0,new cljs.core.Keyword(null,"placeholder","placeholder",-104873083),null,new cljs.core.Keyword(null,"help","help",-439233446),"A non-negative real number specifying the minimum lift for the rules discovered."], null)], null),new cljs.core.PersistentVector(null, 2, 5, cljs.core.PersistentVector.EMPTY_NODE, ["Min support",new cljs.core.PersistentArrayMap(null, 6, [new cljs.core.Keyword(null,"type","type",1174270348),new cljs.core.Keyword(null,"float","float",-1732389368),new cljs.core.Keyword(null,"query-key","query-key",773371971),"min_support",new cljs.core.Keyword(null,"value","value",305978217),1.0,new cljs.core.Keyword(null,"void-if","void-if",-625004048),1.0,new cljs.core.Keyword(null,"placeholder","placeholder",-104873083),null,new cljs.core.Keyword(null,"help","help",-439233446),"A non-negative real number specifying the minimum support for the rules discovered, i.e., the number of instances matching both the left-hand and right-hand sides."], null)], null),new cljs.core.PersistentVector(null, 2, 5, cljs.core.PersistentVector.EMPTY_NODE, ["Missing items",new cljs.core.PersistentArrayMap(null, 6, [new cljs.core.Keyword(null,"type","type",1174270348),new cljs.core.Keyword(null,"boolean","boolean",-1919418404),new cljs.core.Keyword(null,"query-key","query-key",773371971),"missing_items",new cljs.core.Keyword(null,"value","value",305978217),false,new cljs.core.Keyword(null,"void-if","void-if",-625004048),false,new cljs.core.Keyword(null,"placeholder","placeholder",-104873083),null,new cljs.core.Keyword(null,"help","help",-439233446),"Whether to create items corresponding to missing field values."], null)], null),new cljs.core.PersistentVector(null, 2, 5, cljs.core.PersistentVector.EMPTY_NODE, ["Out of bag",new cljs.core.PersistentArrayMap(null, 5, [new cljs.core.Keyword(null,"placeholder","placeholder",-104873083),null,new cljs.core.Keyword(null,"value","value",305978217),false,new cljs.core.Keyword(null,"type","type",1174270348),new cljs.core.Keyword(null,"boolean","boolean",-1919418404),new cljs.core.Keyword(null,"void-if","void-if",-625004048),false,new cljs.core.Keyword(null,"help","help",-439233446),"Setting this parameter to true will return a sequence of the out-of-bag instances instead of the sampled instances."], null)], null),new cljs.core.PersistentVector(null, 2, 5, cljs.core.PersistentVector.EMPTY_NODE, ["Range",new cljs.core.PersistentArrayMap(null, 5, [new cljs.core.Keyword(null,"placeholder","placeholder",-104873083),null,new cljs.core.Keyword(null,"value","value",305978217),(0),new cljs.core.Keyword(null,"type","type",1174270348),new cljs.core.Keyword(null,"number","number",1570378438),new cljs.core.Keyword(null,"void-if","void-if",-625004048),(0),new cljs.core.Keyword(null,"help","help",-439233446),"The range of successive instances to build the model."], null)], null),new cljs.core.PersistentVector(null, 2, 5, cljs.core.PersistentVector.EMPTY_NODE, ["Replacement",new cljs.core.PersistentArrayMap(null, 5, [new cljs.core.Keyword(null,"placeholder","placeholder",-104873083),null,new cljs.core.Keyword(null,"value","value",305978217),false,new cljs.core.Keyword(null,"type","type",1174270348),new cljs.core.Keyword(null,"boolean","boolean",-1919418404),new cljs.core.Keyword(null,"void-if","void-if",-625004048),false,new cljs.core.Keyword(null,"help","help",-439233446),"Whether sampling should be performed with or without replacement."], null)], null),new cljs.core.PersistentVector(null, 2, 5, cljs.core.PersistentVector.EMPTY_NODE, ["RHS predicate",new cljs.core.PersistentArrayMap(null, 6, [new cljs.core.Keyword(null,"type","type",1174270348),new cljs.core.Keyword(null,"json","json",1279968570),new cljs.core.Keyword(null,"query-key","query-key",773371971),"rhs_predicate",new cljs.core.Keyword(null,"value","value",305978217),"",new cljs.core.Keyword(null,"void-if","void-if",-625004048),"",new cljs.core.Keyword(null,"placeholder","placeholder",-104873083),"[{\n \"field\": \"petal width\",\n \"operator\": \"in\",\n \"value\": [1.0, 2.0]\n }, {\n \"field\": \"species\"}]",new cljs.core.Keyword(null,"help","help",-439233446),"Restriction for the search to rules with certain right-hand side values."], null)], null),new cljs.core.PersistentVector(null, 2, 5, cljs.core.PersistentVector.EMPTY_NODE, ["Sample rate",new cljs.core.PersistentArrayMap(null, 5, [new cljs.core.Keyword(null,"placeholder","placeholder",-104873083),null,new cljs.core.Keyword(null,"value","value",305978217),1.0,new cljs.core.Keyword(null,"type","type",1174270348),new cljs.core.Keyword(null,"float","float",-1732389368),new cljs.core.Keyword(null,"void-if","void-if",-625004048),1.0,new cljs.core.Keyword(null,"help","help",-439233446),"A real number between 0 and 1 specifying the sample rate."], null)], null),new cljs.core.PersistentVector(null, 2, 5, cljs.core.PersistentVector.EMPTY_NODE, ["Search strategy",new cljs.core.PersistentArrayMap(null, 6, [new cljs.core.Keyword(null,"type","type",1174270348),new cljs.core.Keyword(null,"select","select",1147833503),new cljs.core.Keyword(null,"query-key","query-key",773371971),"search_strategy",new cljs.core.Keyword(null,"opts","opts",155075701),new cljs.core.PersistentVector(null, 5, 5, cljs.core.PersistentVector.EMPTY_NODE, [new cljs.core.PersistentVector(null, 2, 5, cljs.core.PersistentVector.EMPTY_NODE, ["confidence","Confidence"], null),new cljs.core.PersistentVector(null, 2, 5, cljs.core.PersistentVector.EMPTY_NODE, ["lhs_cover","LHS Cover"], null),new cljs.core.PersistentVector(null, 2, 5, cljs.core.PersistentVector.EMPTY_NODE, ["leverage","Leverage"], null),new cljs.core.PersistentVector(null, 2, 5, cljs.core.PersistentVector.EMPTY_NODE, ["lift","Lift"], null),new cljs.core.PersistentVector(null, 2, 5, cljs.core.PersistentVector.EMPTY_NODE, ["support","Support"], null)], null),new cljs.core.Keyword(null,"value","value",305978217),null,new cljs.core.Keyword(null,"void-if","void-if",-625004048),null,new cljs.core.Keyword(null,"help","help",-439233446),"The strategy for prioritizing the rules in the search."], null)], null),new cljs.core.PersistentVector(null, 2, 5, cljs.core.PersistentVector.EMPTY_NODE, ["Seed",new cljs.core.PersistentArrayMap(null, 5, [new cljs.core.Keyword(null,"placeholder","placeholder",-104873083),null,new cljs.core.Keyword(null,"value","value",305978217),"",new cljs.core.Keyword(null,"type","type",1174270348),new cljs.core.Keyword(null,"text","text",-1790561697),new cljs.core.Keyword(null,"void-if","void-if",-625004048),"",new cljs.core.Keyword(null,"help","help",-439233446),"A string to be hashed to generate deterministic samples."], null)], null),new cljs.core.PersistentVector(null, 2, 5, cljs.core.PersistentVector.EMPTY_NODE, ["Significance level",new cljs.core.PersistentArrayMap(null, 6, [new cljs.core.Keyword(null,"type","type",1174270348),new cljs.core.Keyword(null,"float","float",-1732389368),new cljs.core.Keyword(null,"query-key","query-key",773371971),"significance_level",new cljs.core.Keyword(null,"value","value",305978217),0.05,new cljs.core.Keyword(null,"void-if","void-if",-625004048),0.05,new cljs.core.Keyword(null,"placeholder","placeholder",-104873083),null,new cljs.core.Keyword(null,"help","help",-439233446),"The significance level between 0 and 1 used for statistical significance of the results."], null)], null),new cljs.core.PersistentVector(null, 2, 5, cljs.core.PersistentVector.EMPTY_NODE, ["Tags",new cljs.core.PersistentArrayMap(null, 5, [new cljs.core.Keyword(null,"type","type",1174270348),new cljs.core.Keyword(null,"text","text",-1790561697),new cljs.core.Keyword(null,"value","value",305978217),"",new cljs.core.Keyword(null,"placeholder","placeholder",-104873083),"[\"A tag\", \"Another Tag\"]",new cljs.core.Keyword(null,"void-if","void-if",-625004048),"",new cljs.core.Keyword(null,"help","help",-439233446),"A list of tags to identify the resource."], null)], null),new cljs.core.PersistentVector(null, 2, 5, cljs.core.PersistentVector.EMPTY_NODE, ["Category",new cljs.core.PersistentArrayMap(null, 4, [new cljs.core.Keyword(null,"type","type",1174270348),new cljs.core.Keyword(null,"select","select",1147833503),new cljs.core.Keyword(null,"opts","opts",155075701),new cljs.core.PersistentVector(null, 2, 5, cljs.core.PersistentVector.EMPTY_NODE, [(5),"Healthcare"], null),new cljs.core.Keyword(null,"value","value",305978217),(0),new cljs.core.Keyword(null,"void-if","void-if",-625004048),(0)], null)], null),new cljs.core.PersistentVector(null, 2, 5, cljs.core.PersistentVector.EMPTY_NODE, ["Webhook",new cljs.core.PersistentArrayMap(null, 4, [new cljs.core.Keyword(null,"type","type",1174270348),new cljs.core.Keyword(null,"text","text",-1790561697),new cljs.core.Keyword(null,"value","value",305978217),"",new cljs.core.Keyword(null,"void-if","void-if",-625004048),"",new cljs.core.Keyword(null,"help","help",-439233446),"A webhook url and an optional secret phrase."], null)], null),new cljs.core.PersistentVector(null, 2, 5, cljs.core.PersistentVector.EMPTY_NODE, ["Reify",new cljs.core.PersistentArrayMap(null, 4, [new cljs.core.Keyword(null,"type","type",1174270348),new cljs.core.Keyword(null,"boolean","boolean",-1919418404),new cljs.core.Keyword(null,"value","value",305978217),false,new cljs.core.Keyword(null,"internal","internal",-854870097),true,new cljs.core.Keyword(null,"help","help",-439233446),"Execute the WhizzML code generated at this (and upstream) node(s). You need to enable this option if you want to get a result from your flow that you can pass to a non-BigML node."], null)], null)], null))));
});
bigml_nodered_core.resources.association_io_fun = (function bigml_nodered_core$resources$create_nodes_$_association_io_fun(){
return new cljs.core.PersistentVector(null, 2, 5, cljs.core.PersistentVector.EMPTY_NODE, [new cljs.core.PersistentVector(null, 1, 5, cljs.core.PersistentVector.EMPTY_NODE, ["dataset"], null),new cljs.core.PersistentVector(null, 1, 5, cljs.core.PersistentVector.EMPTY_NODE, ["association"], null)], null);
});
bigml_nodered_core.resources.association_node_fun = (function bigml_nodered_core$resources$create_nodes_$_association_node_fun(node__2071__auto__,config__2062__auto__,red__2072__auto__){
return bigml_nodered_core.wz.node_fun.call(null,bigml_nodered_core.resources.create_resource.call(null,bigml_nodered_core.utils.escape_string.call(null,cljs.core.first.call(null,new cljs.core.PersistentVector(null, 2, 5, cljs.core.PersistentVector.EMPTY_NODE, ["Association",new cljs.core.PersistentArrayMap(null, 3, [new cljs.core.Keyword(null,"in","in",-1531184865),new cljs.core.PersistentVector(null, 1, 5, cljs.core.PersistentVector.EMPTY_NODE, ["dataset"], null),new cljs.core.Keyword(null,"out","out",-910545517),new cljs.core.PersistentVector(null, 1, 5, cljs.core.PersistentVector.EMPTY_NODE, ["association"], null),new cljs.core.Keyword(null,"fn","fn",-1175266204),bigml_nodered_core.wz.tasks.wz_train], null)], null))),new cljs.core.Keyword(null,"fn","fn",-1175266204).cljs$core$IFn$_invoke$arity$1(cljs.core.last.call(null,new cljs.core.PersistentVector(null, 2, 5, cljs.core.PersistentVector.EMPTY_NODE, ["Association",new cljs.core.PersistentArrayMap(null, 3, [new cljs.core.Keyword(null,"in","in",-1531184865),new cljs.core.PersistentVector(null, 1, 5, cljs.core.PersistentVector.EMPTY_NODE, ["dataset"], null),new cljs.core.Keyword(null,"out","out",-910545517),new cljs.core.PersistentVector(null, 1, 5, cljs.core.PersistentVector.EMPTY_NODE, ["association"], null),new cljs.core.Keyword(null,"fn","fn",-1175266204),bigml_nodered_core.wz.tasks.wz_train], null)], null)))),bigml_nodered_core.resources.association_opts_fun,bigml_nodered_core.resources.association_io_fun,node__2071__auto__,config__2062__auto__,red__2072__auto__);
});
return new cljs.core.PersistentVector(null, 3, 5, cljs.core.PersistentVector.EMPTY_NODE, [bigml_nodered_core.resources.association_node_fun,bigml_nodered_core.resources.association_opts_fun,bigml_nodered_core.resources.association_io_fun], null);
})()
,(function (){
bigml_nodered_core.resources.fusion_opts_fun = (function bigml_nodered_core$resources$create_nodes_$_fusion_opts_fun(config__2062__auto__,payload__2063__auto__){
var config__2062__auto____$1 = cljs.core.merge.call(null,config__2062__auto__,payload__2063__auto__);
return cljs.core.into.call(null,cljs.core.PersistentArrayMap.EMPTY,cljs.core.map.call(null,((function (config__2062__auto____$1){
return (function (p__2695){
var vec__2696 = p__2695;
var field__2064__auto__ = cljs.core.nth.call(null,vec__2696,(0),null);
var def__2065__auto__ = cljs.core.nth.call(null,vec__2696,(1),null);
var k__2066__auto__ = bigml_nodered_core.utils.escape_api_name.call(null,field__2064__auto__);
var f__2067__auto__ = (function (){var or__4131__auto__ = new cljs.core.Keyword(null,"query-key","query-key",773371971).cljs$core$IFn$_invoke$arity$1(def__2065__auto__);
if(cljs.core.truth_(or__4131__auto__)){
return or__4131__auto__;
} else {
return k__2066__auto__;
}
})();
var v__2068__auto__ = bigml_nodered_core.utils.cast_config_type.call(null,new cljs.core.Keyword(null,"type","type",1174270348).cljs$core$IFn$_invoke$arity$1(def__2065__auto__),cljs.core.get.call(null,config__2062__auto____$1,k__2066__auto__));
return new cljs.core.PersistentVector(null, 2, 5, cljs.core.PersistentVector.EMPTY_NODE, [f__2067__auto__,v__2068__auto__], null);
});})(config__2062__auto____$1))
,cljs.core.filter.call(null,((function (config__2062__auto____$1){
return (function (p__2699){
var vec__2700 = p__2699;
var field__2064__auto__ = cljs.core.nth.call(null,vec__2700,(0),null);
var def__2065__auto__ = cljs.core.nth.call(null,vec__2700,(1),null);
var k__2066__auto__ = bigml_nodered_core.utils.escape_api_name.call(null,field__2064__auto__);
var void_val__2069__auto__ = new cljs.core.Keyword(null,"void-if","void-if",-625004048).cljs$core$IFn$_invoke$arity$1(def__2065__auto__);
var config_val__2070__auto__ = cljs.core.get.call(null,config__2062__auto____$1,k__2066__auto__);
return ((cljs.core.not.call(null,new cljs.core.Keyword(null,"internal","internal",-854870097).cljs$core$IFn$_invoke$arity$1(def__2065__auto__))) && ((!((config_val__2070__auto__ == null)))) && (cljs.core.not_EQ_.call(null,config_val__2070__auto__,"")) && (cljs.core.not_EQ_.call(null,void_val__2069__auto__,config_val__2070__auto__)));
});})(config__2062__auto____$1))
,new cljs.core.PersistentVector(null, 8, 5, cljs.core.PersistentVector.EMPTY_NODE, [new cljs.core.PersistentVector(null, 2, 5, cljs.core.PersistentVector.EMPTY_NODE, ["Name",new cljs.core.PersistentArrayMap(null, 4, [new cljs.core.Keyword(null,"type","type",1174270348),new cljs.core.Keyword(null,"text","text",-1790561697),new cljs.core.Keyword(null,"value","value",305978217),"fusion",new cljs.core.Keyword(null,"help","help",-439233446),"A name for this node.",new cljs.core.Keyword(null,"required","required",1807647006),true], null)], null),new cljs.core.PersistentVector(null, 2, 5, cljs.core.PersistentVector.EMPTY_NODE, ["Description",new cljs.core.PersistentArrayMap(null, 3, [new cljs.core.Keyword(null,"type","type",1174270348),new cljs.core.Keyword(null,"text","text",-1790561697),new cljs.core.Keyword(null,"value","value",305978217),"",new cljs.core.Keyword(null,"void-if","void-if",-625004048),""], null)], null),new cljs.core.PersistentVector(null, 2, 5, cljs.core.PersistentVector.EMPTY_NODE, ["Field maps",new cljs.core.PersistentArrayMap(null, 6, [new cljs.core.Keyword(null,"type","type",1174270348),new cljs.core.Keyword(null,"text","text",-1790561697),new cljs.core.Keyword(null,"query-key","query-key",773371971),"field_maps",new cljs.core.Keyword(null,"value","value",305978217),null,new cljs.core.Keyword(null,"void-if","void-if",-625004048),null,new cljs.core.Keyword(null,"placeholder","placeholder",-104873083),"{\n \"model/52bc7fd03c1920e4a3000016\": {\n \"000000\":\"000023\",\n \"000001\":\"000024\",\n \"000002\":\"00003a\"},\n \"ensemble/52bc80233c1920e4a300001a\": {\n \"000000\":\"000023\",\n \"000001\":\"000004\",\n \"000002\":\"00000f\"}}",new cljs.core.Keyword(null,"help","help",-439233446),"A dictionary keyed by a submodel id and object values. Each entry maps fields in the submodel to fields in the fusion"], null)], null),new cljs.core.PersistentVector(null, 2, 5, cljs.core.PersistentVector.EMPTY_NODE, ["Models",new cljs.core.PersistentArrayMap(null, 6, [new cljs.core.Keyword(null,"type","type",1174270348),new cljs.core.Keyword(null,"text","text",-1790561697),new cljs.core.Keyword(null,"query-key","query-key",773371971),"models",new cljs.core.Keyword(null,"value","value",305978217),"",new cljs.core.Keyword(null,"void-if","void-if",-625004048),"",new cljs.core.Keyword(null,"placeholder","placeholder",-104873083),"[\n \"model/5af06df94e17277501000010\"\n \"model/5af06df84e17277502000019\"\n \"deepnet/5af06df84e17277502000016\"\n \"ensemble/5af06df74e1727750100000d\"]",new cljs.core.Keyword(null,"help","help",-439233446),"A list with fusion submodel resource/ids or or list of maps using the key id for each submodel resource/id, and any other key/values for additional meta-information on the model."], null)], null),new cljs.core.PersistentVector(null, 2, 5, cljs.core.PersistentVector.EMPTY_NODE, ["Tags",new cljs.core.PersistentArrayMap(null, 5, [new cljs.core.Keyword(null,"type","type",1174270348),new cljs.core.Keyword(null,"text","text",-1790561697),new cljs.core.Keyword(null,"value","value",305978217),"",new cljs.core.Keyword(null,"placeholder","placeholder",-104873083),"[\"A tag\", \"Another Tag\"]",new cljs.core.Keyword(null,"void-if","void-if",-625004048),"",new cljs.core.Keyword(null,"help","help",-439233446),"A list of tags to identify the resource."], null)], null),new cljs.core.PersistentVector(null, 2, 5, cljs.core.PersistentVector.EMPTY_NODE, ["Category",new cljs.core.PersistentArrayMap(null, 4, [new cljs.core.Keyword(null,"type","type",1174270348),new cljs.core.Keyword(null,"select","select",1147833503),new cljs.core.Keyword(null,"opts","opts",155075701),new cljs.core.PersistentVector(null, 2, 5, cljs.core.PersistentVector.EMPTY_NODE, [(5),"Healthcare"], null),new cljs.core.Keyword(null,"value","value",305978217),(0),new cljs.core.Keyword(null,"void-if","void-if",-625004048),(0)], null)], null),new cljs.core.PersistentVector(null, 2, 5, cljs.core.PersistentVector.EMPTY_NODE, ["Webhook",new cljs.core.PersistentArrayMap(null, 4, [new cljs.core.Keyword(null,"type","type",1174270348),new cljs.core.Keyword(null,"text","text",-1790561697),new cljs.core.Keyword(null,"value","value",305978217),"",new cljs.core.Keyword(null,"void-if","void-if",-625004048),"",new cljs.core.Keyword(null,"help","help",-439233446),"A webhook url and an optional secret phrase."], null)], null),new cljs.core.PersistentVector(null, 2, 5, cljs.core.PersistentVector.EMPTY_NODE, ["Reify",new cljs.core.PersistentArrayMap(null, 4, [new cljs.core.Keyword(null,"type","type",1174270348),new cljs.core.Keyword(null,"boolean","boolean",-1919418404),new cljs.core.Keyword(null,"value","value",305978217),false,new cljs.core.Keyword(null,"internal","internal",-854870097),true,new cljs.core.Keyword(null,"help","help",-439233446),"Execute the WhizzML code generated at this (and upstream) node(s). You need to enable this option if you want to get a result from your flow that you can pass to a non-BigML node."], null)], null)], null))));
});
bigml_nodered_core.resources.fusion_io_fun = (function bigml_nodered_core$resources$create_nodes_$_fusion_io_fun(){
return new cljs.core.PersistentVector(null, 2, 5, cljs.core.PersistentVector.EMPTY_NODE, [new cljs.core.PersistentVector(null, 1, 5, cljs.core.PersistentVector.EMPTY_NODE, ["dataset"], null),new cljs.core.PersistentVector(null, 1, 5, cljs.core.PersistentVector.EMPTY_NODE, ["fusion"], null)], null);
});
bigml_nodered_core.resources.fusion_node_fun = (function bigml_nodered_core$resources$create_nodes_$_fusion_node_fun(node__2071__auto__,config__2062__auto__,red__2072__auto__){
return bigml_nodered_core.wz.node_fun.call(null,bigml_nodered_core.resources.create_resource.call(null,bigml_nodered_core.utils.escape_string.call(null,cljs.core.first.call(null,new cljs.core.PersistentVector(null, 2, 5, cljs.core.PersistentVector.EMPTY_NODE, ["Fusion",new cljs.core.Persiste