UNPKG

bigml-nodered

Version:

BigML bindings for Nodered

166 lines (147 loc) 6.56 kB
<style> .bigml_node_label { fill: white; } #palette-BigML .palette_node { color: white; } #red-ui-palette-BigML .red-ui-palette-label { color: white; } </style> <script type="text/javascript"> RED.nodes.registerType('find', { category: 'BigML', color: '#454957', defaults: {"name":{"value":"Find resources","required":true},"resource_type":{"value":"model"},"resource_name":{"value":""},"tag":{"value":""},"limit":{"value":1},"sort_field":{"value":""},"order":{"value":"asc"},"reify":{"value":false}}, inputs:1, outputs:1, inputLabels: '[]', outputLabels: 'resource', icon: 'icon_generic.png', label: function() { return this.name || 'Find node'; }, labelStyle: function() { return this.name?"bigml_node_label":""; }, }); </script> <script type="text/x-red" data-template-name="find"> <div class="form-row"> <label for="node-input-name"> <i class="icon-tag"></i> Name </label> <input type=text id=node-input-name value='Find resources'> </div> <div class="form-row"> <label for="node-input-resource_type"> <i class="icon-tag"></i> Resource Type </label> <select id=node-input-resource_type value='model'><option value=project>Project</option> <option value=source>Source</option> <option value=dataset>Dataset</option> <option value=model>Model</option> <option value=ensemble>Ensemble</option> <option value=logisticregression>Logistic regression</option> <option value=deepnet>Deepnet</option> <option value=timeseries>Time series</option> <option value=fusion>Fusion</option> <option value=evaluation>Evaluation</option> <option value=optiml>Optiml</option> <option value=cluster>Cluster</option> <option value=anomaly>Anomaly</option> <option value=association>Association</option> <option value=topicmodel>Topic model</option> <option value=prediction>Prediction</option> <option value=batchprediction>Batch prediction</option> <option value=forecast>Forecast</option> <option value=centroid>Centroid</option> <option value=batchcentroid>Batch centroid</option> <option value=anomalyscore>Anomaly score</option> <option value=batchscore>Batch score</option> <option value=associationset>Association set</option> <option value=topicdistribution>Topic distribution</option> <option value=batchdistribution>Batch distribution</option> <option value=library>Library</option> <option value=script>Script</option> <option value=execution>Execution</option></select> </div> <div class="form-row"> <label for="node-input-resource_name"> <i class="icon-tag"></i> Resource Name </label> <input type=text id=node-input-resource_name > </div> <div class="form-row"> <label for="node-input-tag"> <i class="icon-tag"></i> Tag </label> <input type=text id=node-input-tag > </div> <div class="form-row"> <label for="node-input-limit"> <i class="icon-tag"></i> Limit </label> <input type=number id=node-input-limit placeholder='1' value='1'> </div> <div class="form-row"> <label for="node-input-sort_field"> <i class="icon-tag"></i> Sort field </label> <input type=text id=node-input-sort_field > </div> <div class="form-row"> <label for="node-input-order"> <i class="icon-tag"></i> Order </label> <select id=node-input-order value='asc'><option value=asc>Ascending</option> <option value=desc>Descending</option></select> </div> <div class="form-row"> <label for="node-input-reify"> <i class="icon-tag"></i> Reify </label> <input type=checkbox id=node-input-reify value='false'> </div> </script> <script type="text/html" data-help-name="find"> <p>This is a BigML Nodered node.</p> <h3>Details</h3> <p>This node support all inputs defined in <a href='https://bigml.com/api/finds' target=blank>BigML REST API</a>. By default, it expects to receive a <code>[]</code> input (see below for more details) and it will output the <code>resource</code> field of the created resource. </p> <p>However, you can override default inputs and outputs by defining the node port label so they match the desired input or output as specified below.</p> <p>Only when the node is used with the <code>reify</code> option enabled, it will actually hit BigML and do its work there. This generally means some resources will be created and sent through as node outputs.</p> <p>When the node is used with the <code>reify</code>option disabled, it will generate WhizzML code and send it through to the next node in the flow without hitting BigML. All WhizzML code created by this node (and others) when not in <code>reify</code> mode is accumulated and executed as a single WhizzML script by the first downstream <code>reified</code> node.</p> <h3>Inputs</h3> <dl class="message-properties"> <dt>Name <span class="property-type">:text</span> </dt> <dd></dd> <dt>Resource Type <span class="property-type">:select</span> </dt> <dd></dd> <dt>Resource Name <span class="property-type">:text</span> </dt> <dd></dd> <dt>Tag <span class="property-type">:text</span> </dt> <dd></dd> <dt>Limit <span class="property-type">:number</span> </dt> <dd></dd> <dt>Sort field <span class="property-type">:text</span> </dt> <dd></dd> <dt>Order <span class="property-type">:select</span> </dt> <dd></dd> <dt>Reify <span class="property-type">:boolean</span> </dt> <dd></dd> </dl> <h3>Outputs</h3> <ol class="node-ports"> <dl class="message-properties"> <dt>payload <span class="property-type">string or JSON</span></dt> <dd>the <code>resource</code> of the created BigML entity.</dd> <dt>whizzml <span class="property-type">string</dt> <dd>(only for <code>reified</code> nodes) the generated WhizzML code which is fed into the next node. <dt>wzStack <span class="property-type">object</dt> <dd>(only for <code>reified</code> nodes) private. </dl> </ol> </script>