(window.webpackJsonp=window.webpackJsonp||[]).push([["algorithm"],{"./node_modules/@splunk/swc-mltk/dist/build_tools/web_loaders/splunk-public-path-injection-loader.js?/static/app/Splunk_ML_Toolkit/!./src/main/webapp/pages/algorithm.es":function(e,t,o){var n,r;o.p=function(){function e(e,t){if(window.$C&&window.$C.hasOwnProperty(e))return window.$C[e];if(void 0!==t)return t;throw new Error("getConfigValue - "+e+" not set, no default provided")}return function(){for(var t,o,n="",r=0,s=arguments.length;r1&&"/"==t.charAt(o-1)&&(t=t.substring(0,o-1)),"/"!=t.charAt(0)?n+="/"+t:n+=t;if("/"!=n){var i=n.split("/"),a=i[1];if("static"==a||"modules"==a){var l=n.substring(a.length+2,n.length);n="/"+a,window.$C.BUILD_NUMBER&&(n+="/@"+window.$C.BUILD_NUMBER),window.$C.BUILD_PUSH_NUMBER&&(n+="."+window.$C.BUILD_PUSH_NUMBER),"app"==i[2]&&(n+=":"+e("APP_BUILD",0)),n+="/"+l}}var d=e("MRSPARKLE_ROOT_PATH","/"),u=e("LOCALE","en-US"),c="/"+u+n;return""==d||"/"==d?c:d+c}("/static/app/Splunk_ML_Toolkit/")+"/"}(),n=[o("./src/main/webapp/routers/Algorithm.es"),o("./node_modules/@splunk/swc-mltk/dist/index.js")],void 0===(r=function(e,t){"use strict";var o;new(e=(o=e)&&o.__esModule?o:{default:o}).default,t.routerUtils.start_backbone_history()}.apply(t,n))||(e.exports=r)},"./src/main/webapp/models/properties/MLSPL.es":function(e,t,o){var n,r;n=[t,o("./node_modules/core-js/modules/web.dom-collections.for-each.js"),o("./node_modules/core-js/modules/es.object.keys.js"),o("./node_modules/core-js/modules/es.array.concat.js"),o("./node_modules/core-js/modules/es.array.join.js"),o("./src/main/webapp/models/properties/Properties.es")],void 0===(r=function(o,n,r,s,i,a){"use strict";var l;Object.defineProperty(o,"__esModule",{value:!0}),o.default=void 0,a=(l=a)&&l.__esModule?l:{default:l};var d={handle_new_cat:{oneOf:["default","skip","stop"]},max_distinct_cat_values:{pattern:"digits"},max_distinct_cat_values_for_classifiers:{pattern:"digits"},max_distinct_cat_values_for_scoring:{pattern:"digits"},max_fit_time:{pattern:"digits"},max_inputs:{pattern:"digits"},max_memory_usage_mb:{pattern:"digits"},max_model_size_mb:{pattern:"digits"},max_score_time:{pattern:"digits"},summary_depth_limit:{pattern:"digits",required:!1},summary_return_json:{oneOf:["true","false"],required:!1},use_sampling:{oneOf:["true","false"]}};Object.keys(d).forEach((function(e){null!=d[e].pattern?"digits"===d[e].pattern&&(d[e].msg="".concat(e," must only contain digits")):null!=d[e].oneOf&&(d[e].msg="".concat(e," must be one of: ").concat(d[e].oneOf.join(", ")))}));var u=a.default.extend({file:"mlspl",description:{default_prob_threshold:'\n The default value for the area under the fitted probability density function curve, that is assigned as anomalous area.\n "0.01" refers to that: "1%" of the area under the fitted density function curve will be assigned as outliers.\n "default_prob_threshold" must have a value between 0.000000001 and 1.\n ',handle_new_cat:"\n Action to perform when new value(s) for categorical variable/explanatory variable is encountered in partial_fit.\n - default: set all values of the column that corresponds to the new categorical value to 0's\n - skip: skip over rows that contain the new value(s) and raise a warning\n - stop: stop the operation by raising an error\n ",max_distinct_cat_values:"\n Determines the upper limit for the number of categorical values that will be encoded in one-hot encoding.\n If the number of distinct values exceeds this limit, the field will be dropped (with a warning).\n ",max_distinct_cat_values_for_classifiers:"\n Determines the upper limit for the number of distinct values in a categorical field that is the target (or response) variable in a classifier algorithm.\n If the number of distinct values exceeds this limit, the field will be dropped (with a warning).\n ",max_distinct_cat_values_for_scoring:"\n Determines the upper limit for the number of distinct values in a categorical field that is the target (or response) variable in a scoring method.\n If the number of distinct values exceeds this limit, the field will be dropped (with an appropriate warning or error message).\n ",max_fields_in_by_clause:'The maximum number of fields that can be provided in the "by" clause.',max_fit_time:'The maximum time, in seconds, to spend in the "fit" phase of an algorithm.',max_groups:'\n The maximum number of groups created with the "by" clause.\n "max_groups" prevents the model file from growing too large.\n The bigger that cap the larger the size of your model file is going to be\n and it will take longer to load at "apply" time.\n Decreasing "max_kde_parameter_size" will allow increasing "max_groups"\n and keeping model size small as a trade-off of accuracy for more groups.\n ',max_inputs:'\n The maximum number of events an algorithm considers when fitting a model.\n If this limit is exceeded, follows the behavior defined by "use_sampling".\n ',max_kde_parameter_size:'\n The maximum number of data points as the parameter size for Gaussian KDE density function.\n Decreasing "max_kde_parameter_size" will allow increasing "max_groups"\n and keeping model size small as a trade-off of accuracy for more groups.\n ',max_memory_usage_mb:"The maximum allowed memory usage, in megabytes, by the fit command while fitting a model.",max_model_size_mb:"The maximum allowed size of a model, in megabytes, created by the fit command.",max_score_time:'The maximum time, in seconds, to spend in the "score" phase of an algorithm',max_threshold_num:"The maximum number of thresholds that can be provided at the same time.",min_data_size_to_fit:'\n The minimum number of data points required to fit a density function.\n Warning about the inaccuracy of the density function if there are less than\n "min_data_size_to_fit" data points in the training dataset.\n ',summary_depth_limit:'The number of nodes in a decision tree to display when running the "summary" command on a model.',summary_return_json:'Whether or not to return a json representation instead of a ASCII representation of the nodes when running the "summary" command on a model.',use_sampling:"Indicates whether to use Reservoir Sampling for data sets that exceed max_inputs or to instead throw an error"},validation:d});o.default=u,e.exports=t.default}.apply(t,n))||(e.exports=r)},"./src/main/webapp/models/properties/Properties.es":function(e,t,o){var n,r;o("./node_modules/core-js/modules/es.object.keys.js"),o("./node_modules/core-js/modules/es.symbol.js"),o("./node_modules/core-js/modules/es.array.filter.js"),o("./node_modules/core-js/modules/es.object.get-own-property-descriptor.js"),o("./node_modules/core-js/modules/es.object.get-own-property-descriptors.js"),n=[t,o("./node_modules/core-js/modules/es.array.concat.js"),o("./node_modules/core-js/modules/web.url.to-json.js"),o("./node_modules/core-js/modules/web.dom-collections.for-each.js"),o("./node_modules/core-js/modules/es.function.name.js"),o("./node_modules/@splunk/swc-mltk/dist/index.js"),o("./src/main/webapp/contrib_shim/underscore/underscore.es")],void 0===(r=function(o,n,r,s,i,a,l){"use strict";var d;function u(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),o.push.apply(o,n)}return o}function c(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:{},o=arguments.length>1?arguments[1]:void 0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:a.jquery.Deferred(),r=new this.constructor({id:this.id});return r.fetch(c({success:function(){e.set(r.toJSON()),n.resolve()},error:function(){if(o){(new e.constructor).save({__stanza:e.id},c({dataType:"text"},t)).done((function(){r.fetch(c({success:function(){e.set(r.toJSON()),n.resolve()},error:function(){n.reject()}},t))})).fail((function(){n.reject()}))}else{var s=new e.constructor({id:"default"});s.fetch(c({success:function(){var t=s.toJSON();t.id=e.id,e.set(t),n.resolve()},error:function(){n.reject()}},t)).fail((function(){n.reject()}))}}},t)),n},sync:function(e,t){var o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},n=l.default.isFunction(t.url)?t.url():t.url,r={data:{output_mode:"json"},url:a.splunkDUtils.fullpath(n,o.data)};a.jquery.extend(!0,r,o,{data:t.attributes}),delete r.data.app,delete r.data.owner,delete r.data.sharing,delete r.data.id;var s="update"===e?"create":e;return a.BaseModel.prototype.sync.apply(this,[s,t,r])},parse:function(e){var t={};return null!=e.entry&&e.entry.forEach((function(e){t[e.name]=e.content})),t}});o.default=p,e.exports=t.default}.apply(t,n))||(e.exports=r)},"./src/main/webapp/routers/Algorithm.es":function(e,t,o){var n,r;n=[t,o("./node_modules/@splunk/ui-utils/i18n.js"),o("./src/main/webapp/routers/Base.es"),o("algorithm/Master")],void 0===(r=function(o,n,r,s){"use strict";function i(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(o,"__esModule",{value:!0}),o.default=void 0,r=i(r),s=i(s);var a=r.default.extend({initialize:function(){r.default.prototype.initialize.apply(this,arguments),this.setPageTitle((0,n.gettext)("Algorithm Settings"))},page:function(){var e=this;r.default.prototype.page.apply(this,arguments),this.mlsplView&&this.mlsplView.remove(),this.deferreds.user.then((function(){e.mlsplView=new s.default({model:{application:e.model.application,classicurl:e.model.classicurl,user:e.model.user},deferreds:{layout:e.deferreds.layout}})}))}});o.default=a,e.exports=t.default}.apply(t,n))||(e.exports=r)},"algorithm/Master":function(e,t,o){(function(e){var n,r;n=[t,o("./node_modules/@splunk/swc-mltk/dist/index.js"),e,o("./src/main/webapp/models/properties/MLSPL.es"),o("shared/BaseDashboard"),o("./src/main/webapp/util/url.es"),o("algorithm/mlspl/Master")],void 0===(r=function(e,o,n,r,s,i,a){"use strict";function l(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,n=l(n),r=l(r),s=l(s),a=l(a);var d={data:{app:"Splunk_ML_Toolkit",owner:"nobody"},emulateJSON:!0},u=s.default.extend({moduleId:n.default.id,headerOptions:{title:"Algorithm Settings"},initialize:function(e){var t=this;this.deferreds.mlspl=o.jquery.Deferred(),this.requiredDeferredIds.push("mlspl"),s.default.prototype.initialize.call(this,e);var n=this.model.classicurl.get("stanza");null!=n&&""!==n||this.deferreds.mlspl.reject("No algorithm was specified."),this.model.mlspl=new r.default({id:n}),this.model.mlspl.bootstrap(d,this.model.user.isAdminLike()).done((function(e,o){t.deferreds.mlspl.resolve()})).fail((function(e,o){t.deferreds.mlspl.reject('Unable to load settings for "'.concat(t.model.mlspl.id,'".'))}))},returnToAlgorithmList:function(){window.location=(0,i.buildMLTKPageUrl)(this.model.application,"settings")},render:function(){s.default.prototype.render.call(this);var e=o.tokenUtils.getEscaper("html")(this.model.classicurl.get("stanza"));"default"===e?this.model.header.set({title:"Default Algorithm Settings",description:"Configure default settings for the fit and apply commands here.\n All algorithms will use these settings unless specifically configured with their own settings."}):this.model.header.set({title:"".concat(e," Algorithm"),description:"Configure settings for the fit and apply commands for the ".concat(e," algorithm here.\n Any settings not configured on the algorithm directly will be inherited from the default settings.")}),this.children.header.render(),this.children.flashMessage=new o.FlashMessagesView({model:{mlspl:this.model.mlspl}}),this.model.mlspl.off("validated",null,this.children.flashMessage.flashMsgHelper);var t=this.model.user.isAdminLike();return t||this.children.flashMessage.flashMsgHelper.addGeneralMessage("notAdminLike",{type:o.splunkDUtils.WARNING,html:"You do not have permissions to edit this configuration."}),this.children.formView=new a.default({model:{mlspl:this.model.mlspl},labelWidth:300,readOnly:!t,onSave:function(){var e=this;this.children.formView.model.props.set("disabled",!0),this.model.mlspl.save(null,d).done((function(){e.returnToAlgorithmList()})).always((function(){e.children.formView.model.props.set("disabled",!1)}))}.bind(this),onCancel:this.returnToAlgorithmList.bind(this)}),this.$el.append(this.children.flashMessage.render().el,this.children.formView.render().el),this}});e.default=u,n.default.exports=t.default}.apply(t,n))||(e.exports=r)}).call(this,o("./node_modules/webpack/buildin/module.js")(e))},"algorithm/mlspl/Form":function(e,t,o){var n,r;o("./node_modules/core-js/modules/es.object.assign.js"),n=[t,o("./node_modules/core-js/modules/es.string.trim.js"),o("./node_modules/core-js/modules/es.array.map.js"),o("./node_modules/core-js/modules/es.function.name.js"),o("./node_modules/react/index.js"),o("./node_modules/prop-types/index.js"),o("./node_modules/@splunk/react-ui/ControlGroup.js"),o("./node_modules/@splunk/react-ui/Text.js"),o("./src/main/webapp/contrib_shim/react-ui/Button/Button.jsx"),o("./node_modules/@splunk/react-ui/RadioBar.js"),o("./node_modules/@splunk/ui-utils/i18n.js")],void 0===(r=function(o,n,r,s,i,a,l,d,u,c,m){"use strict";function p(e){return e&&e.__esModule?e:{default:e}}function f(){return(f=Object.assign||function(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:"";return i.default.createElement("span",{style:{whiteSpace:"pre-line"}},e.trim())}var _=function(e){var t=e.attributes,o=e.dataTest,n=e.disabled,r=e.isValid,s=e.labelWidth,a=e.onCancel,p=e.onChange,h=e.onSave,_=e.readOnly,g={};return null!=o&&(g["data-test"]=o),i.default.createElement(i.default.Fragment,null,t.map((function(e){return i.default.createElement(l.default,f({key:e.label,error:null!=e.error,help:e.error,label:e.label,labelWidth:s,tooltip:b(e.tooltip)},g),e.validation&&null!=e.validation.oneOf?i.default.createElement(c.default,{error:null!=e.error,name:e.label,onChange:function(e,t){var o=t.value,n=t.name;return p(o,n)},value:e.value},e.validation.oneOf.map((function(e){return i.default.createElement(c.default.Option,{key:e,disabled:n||_,label:e,value:e})}))):i.default.createElement(d.default,{disabled:n||_,error:null!=e.error,name:e.label,onChange:function(e,t){var o=t.value,n=t.name;return p(o,n)},value:e.value}))})),i.default.createElement(l.default,{controlsLayout:"none",label:"",labelWidth:s},i.default.createElement(u.default,{appearance:"secondary",disabled:n,label:(0,m.gettext)("Cancel"),onClick:a}),!_&&i.default.createElement(u.default,{appearance:"primary",disabled:n||!r,label:(0,m.gettext)("Save"),onClick:h})))};_.propTypes=h,_.defaultProps={attributes:[],dataTest:null,disabled:!1,readOnly:!1,isValid:!1,labelWidth:120};var g=_;o.default=g,e.exports=t.default}.apply(t,n))||(e.exports=r)},"algorithm/mlspl/FormContainer":function(e,t,o){var n,r;function s(e){return(s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}o("./node_modules/core-js/modules/es.array.iterator.js"),o("./node_modules/core-js/modules/es.object.to-string.js"),o("./node_modules/core-js/modules/es.string.iterator.js"),o("./node_modules/core-js/modules/es.weak-map.js"),o("./node_modules/core-js/modules/esnext.weak-map.delete-all.js"),o("./node_modules/core-js/modules/web.dom-collections.iterator.js"),o("./node_modules/core-js/modules/es.object.get-own-property-descriptor.js"),o("./node_modules/core-js/modules/es.object.assign.js"),o("./node_modules/core-js/modules/es.reflect.construct.js"),o("./node_modules/core-js/modules/es.symbol.iterator.js"),n=[t,o("./node_modules/core-js/modules/es.array.sort.js"),o("./node_modules/core-js/modules/es.object.keys.js"),o("./node_modules/core-js/modules/web.url.to-json.js"),o("./node_modules/core-js/modules/es.symbol.js"),o("./node_modules/core-js/modules/es.symbol.description.js"),o("./node_modules/core-js/modules/es.object.set-prototype-of.js"),o("./node_modules/core-js/modules/es.object.get-prototype-of.js"),o("./node_modules/react/index.js"),o("./node_modules/prop-types/index.js"),o("algorithm/mlspl/Form")],void 0===(r=function(o,n,r,i,a,l,d,u,c,m,p){"use strict";function f(e){return e&&e.__esModule?e:{default:e}}function h(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,o=new WeakMap;return(h=function(e){return e?o:t})(e)}function b(){return(b=Object.assign||function(e){for(var t=1;t=0||(r[o]=e[o]);return r}(e,t);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(n=0;n=0||Object.prototype.propertyIsEnumerable.call(e,o)&&(r[o]=e[o])}return r}var m=(0,o.hot)(l.default),p=s.ReactAdapterBaseView.extend({moduleId:i.default.id,initialize:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};s.ReactAdapterBaseView.prototype.initialize.apply(this,e),this.model=this.model||{};e.model;var t=c(e,d);this.model.mlspl=this.model.mlspl||new a.default,this.model.props=this.model.props||new r.Backbone.Model,this.model.props.set(t)},getComponent:function(){return n.default.createElement(m,{model:this.model})}});e.default=p,i.default.exports=t.default}.apply(t,n))||(e.exports=r)}).call(this,o("./node_modules/webpack/buildin/module.js")(e))}},[["./node_modules/@splunk/swc-mltk/dist/build_tools/web_loaders/splunk-public-path-injection-loader.js?/static/app/Splunk_ML_Toolkit/!./src/main/webapp/pages/algorithm.es","pages_common"]]]);