Hi ML Team in this data set 42 feature include *---------------------------- *
*Categorical Features* *----------------------------* *protocol_type 3 unique value* *num_outbound_cmds 1 * *land 2* *lable 24* *wrong_fragment 3* *su_attempted 3* *is_guest_login 2* *num_shells 3* *urgent 6* *num_failed_logins 6* *is_host_login 2* *logged_in 2* *flag 11 * *num_access_files 10* *service 70* *hot 30* *root_shell 2* other features are numerical so problem num_outbound_cmds is this feature ? On Fri, Dec 11, 2015 at 6:42 AM, Nirmal Fernando <nir...@wso2.com> wrote: > You seem to have a categorical feature with 1 unique value. Can you check > your categorical feature list? > > On Thu, Dec 10, 2015 at 9:06 PM, Mohamed ZAJITH <mohamedzaj...@gmail.com> > wrote: > >> Hi Wso2ML Team >> i am getting an error can anyone help me to solve this >> >> An error occurred while building supervised machine learning model: An >> error occurred while building decision tree model: requirement failed: >> DecisionTree Strategy given invalid categoricalFeaturesInfo setting: >> feature 10 has 1 categories. The number of categories should be >= 2. Model >> Configuration [algorithmName=DECISION_TREE, algorithmClass=Classification, >> responseVariable=lable, trainDataFraction=1.0, >> hyperParameters={Max_Bins=100, Impurity=entropy, Max_Depth=50}, >> features=[Feature [name=count, index=22, type=NUMERICAL, >> imputeOption=DISCARD, include=true], Feature [name=diff_srv_rate, index=29, >> type=NUMERICAL, imputeOption=DISCARD, include=true], Feature >> [name=dst_bytes, index=5, type=NUMERICAL, imputeOption=DISCARD, >> include=true], Feature [name=dst_host_count, index=31, type=NUMERICAL, >> imputeOption=DISCARD, include=true], Feature [name=dst_host_diff_srv_rate, >> index=34, type=NUMERICAL, imputeOption=DISCARD, include=true], Feature >> [name=dst_host_rerror_rate, index=39, type=NUMERICAL, imputeOption=DISCARD, >> include=true], Feature [name=dst_host_same_src_port_rate, index=35, >> type=NUMERICAL, imputeOption=DISCARD, include=true], Feature >> [name=dst_host_same_srv_rate, index=33, type=NUMERICAL, >> imputeOption=DISCARD, include=true], Feature [name=dst_host_serror_rate, >> index=37, type=NUMERICAL, imputeOption=DISCARD, include=true], Feature >> [name=dst_host_srv_count, index=32, type=NUMERICAL, imputeOption=DISCARD, >> include=true], Feature [name=dst_host_srv_diff_host_rate, index=36, >> type=NUMERICAL, imputeOption=DISCARD, include=true], Feature >> [name=dst_host_srv_rerror_rate, index=40, type=NUMERICAL, >> imputeOption=DISCARD, include=true], Feature >> [name=dst_host_srv_serror_rate, index=38, type=NUMERICAL, >> imputeOption=DISCARD, include=true], Feature [name=duration, index=0, >> type=NUMERICAL, imputeOption=DISCARD, include=true], Feature [name=flag, >> index=3, type=CATEGORICAL, >> >> >> http://kdd.ics.uci.edu/databases/kddcup99/kddcup99.html >> >> 145586 Record(unique of 10% data) >> -- >> *Regards.* >> *MohamedZajith* >> * <https://lk.linkedin.com/in/mohamedzajith>* >> > > > > -- > > Thanks & regards, > Nirmal > > Team Lead - WSO2 Machine Learner > Associate Technical Lead - Data Technologies Team, WSO2 Inc. > Mobile: +94715779733 > Blog: http://nirmalfdo.blogspot.com/ > > > -- *Regards.* *MohamedZajith* * <https://lk.linkedin.com/in/mohamedzajith>*
_______________________________________________ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev