Closed rahulramesh3321 closed 10 months ago
i need your data set and configuration to understand the problem
Please find attached encoded data, though the values are categorical and almost all the variables has similar kind of data . Thanks in advance
Closed with PR - https://github.com/serengil/chefboost/pull/46
Hi,
I am facing below error while running the CHAID. Though, when used ID3, it run successfully.
[INFO]: 4 CPU cores will be allocated in parallel running CHAID tree is going to be built...
RemoteTraceback Traceback (most recent call last) RemoteTraceback: """ Traceback (most recent call last): File "C:\Users\Rahul.Chandel\Anaconda3\lib\multiprocessing\pool.py", line 125, in worker result = (True, func(*args, *kwds)) File "C:\Users\Rahul.Chandel\Anaconda3\lib\site-packages\chefboost\training\Training.py", line 209, in createBranchWrapper return func(args) File "C:\Users\Rahul.Chandel\Anaconda3\lib\site-packages\chefboost\training\Training.py", line 330, in createBranch results = buildDecisionTree(subdataset, root, file, config, dataset_features File "C:\Users\Rahul.Chandel\Anaconda3\lib\site-packages\chefboost\training\Training.py", line 533, in buildDecisionTree sub_results = createBranchWrapper(createBranch, input_param) File "C:\Users\Rahul.Chandel\Anaconda3\lib\site-packages\chefboost\training\Training.py", line 209, in createBranchWrapper return func(args) File "C:\Users\Rahul.Chandel\Anaconda3\lib\site-packages\chefboost\training\Training.py", line 330, in createBranch results = buildDecisionTree(subdataset, root, file, config, dataset_features File "C:\Users\Rahul.Chandel\Anaconda3\lib\site-packages\chefboost\training\Training.py", line 533, in buildDecisionTree sub_results = createBranchWrapper(createBranch, input_param) File "C:\Users\Rahul.Chandel\Anaconda3\lib\site-packages\chefboost\training\Training.py", line 209, in createBranchWrapper return func(args) File "C:\Users\Rahul.Chandel\Anaconda3\lib\site-packages\chefboost\training\Training.py", line 330, in createBranch results = buildDecisionTree(subdataset, root, file, config, dataset_features File "C:\Users\Rahul.Chandel\Anaconda3\lib\site-packages\chefboost\training\Training.py", line 432, in buildDecisionTree pivot = pd.DataFrame(subdataset.Decision.value_counts()).reset_index() UnboundLocalError: local variable 'subdataset' referenced before assignment """
The above exception was the direct cause of the following exception:
UnboundLocalError Traceback (most recent call last)