/*! For license information please see dll.224.js.LICENSE.txt */
(window.webpackJsonp_name_dll=window.webpackJsonp_name_dll||[]).push([[224],{3427:function(e,t,n){"use strict";n.r(t);var a=n(14),r=n.n(a),i=n(12),o=n.n(i),l=n(10),u=n.n(l),c=n(15),s=n.n(c),d=n(16),p=n.n(d),f=n(8),m=n.n(f),h=n(7),g=n.n(h),v=n(0),y=n.n(v),E=n(1),R=n.n(E),S=n(1100),w=n.n(S),q=n(201),b=n.n(q),A=n(138),_=n.n(A),O=n(362),L=n(203),P=n(207),k=n(210),x=n(368),z=n(1831),G=n(200),I=n(991);function T(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,a=m()(e);if(t){var r=m()(this).constructor;n=Reflect.construct(a,arguments,r)}else n=a.apply(this,arguments);return p()(this,n)}}var V=y.a.createElement("span",null,"Fit a regression model in which non-zero regression coefficients are penalized using the ",y.a.createElement(O.default,{raw:"\\lambda"})," regularization parameter. The LASSO performs automatic model selection as it will shrink the regression coefficients of some variables to zero."),C=function(e){s()(n,e);var t=T(n);function n(e){var a;return r()(this,n),a=t.call(this,e),g()(u()(a),"compute",(function(e,t,n,r){var i=y.a.createElement(z.default,{x:t,y:e,lambda:n,intercept:r,data:a.props.data,quantitative:a.props.quantitative,onPredict:function(e,t,n){var r=_()(a.props.data,1),i=a.props.quantitative.slice(),o="pred_lasso"+n;r[o]=e,b()(i,o)||i.push(o),r[o="resid_lasso"+n]=t,b()(i,o)||i.push(o),a.props.onGenerate(i,r)}});a.props.logAction(G.DATA_EXPLORER_LASSO_REGRESSION,{y:e,x:t,intercept:r,lambda:n}),a.props.onCreated(i)})),a}return o()(n,[{key:"render",value:function(){var e=this.props,t=e.categorical,n=e.quantitative;return y.a.createElement(x.default,{title:y.a.createElement("span",null,"LASSO Regression",y.a.createElement(I.default,{title:"LASSO Regression",content:V})),autoStart:!1,onGenerate:this.compute},y.a.createElement(L.default,{legend:"Outcome (Y):",options:n,defaultValue:n[0]}),y.a.createElement(L.default,{legend:"Predictors (X):",multi:!0,options:w()(n.concat(t)),defaultValue:n[1],closeMenuOnSelect:!1}),y.a.createElement(k.default,{legend:y.a.createElement("span",null,"L1 Penalty Term ",y.a.createElement(O.default,{raw:"\\lambda"})),defaultValue:.001,min:1e-12,max:1,step:"any",rangeInputStyle:{width:260},numberInputStyle:{width:120}}),y.a.createElement(P.default,{legend:"Include intercept?",defaultValue:!0}))}}]),n}(v.Component);C.defaultProps={logAction:function(){}},C.propTypes={categorical:R.a.array.isRequired,quantitative:R.a.array.isRequired,data:R.a.object.isRequired,logAction:R.a.func,onGenerate:R.a.func.isRequired,onCreated:R.a.func.isRequired},t.default=C}}]);