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/
_______________________________________________
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev

Reply via email to