Kunal Roy
Followers: 0 Following: 0
Statistics
14 Questions
0 Answers
RANK
38.611
of 295.569
REPUTATION
1
CONTRIBUTIONS
14 Questions
0 Answers
ANSWER ACCEPTANCE
35.71%
VOTES RECEIVED
1
RANK
of 20.247
REPUTATION
N/A
AVERAGE RATING
0.00
CONTRIBUTIONS
0 Files
DOWNLOADS
0
ALL TIME DOWNLOADS
0
RANK
of 154.105
CONTRIBUTIONS
0 Problems
0 Solutions
SCORE
0
NUMBER OF BADGES
0
CONTRIBUTIONS
0 Posts
CONTRIBUTIONS
0 Public Channels
AVERAGE RATING
CONTRIBUTIONS
0 Highlights
AVERAGE NO. OF LIKES
Feeds
Question
I execute the following program and none of the variables in the decision tree function and below show up in the workspace? Am I doing something wrong with how I'm defining and using the functions?
load iris.dat %discretizeData discretizedData = zeros(150,5); for i = 1:size(iris,2) currentColumn = i...
ongeveer 8 jaar ago | 0 answers | 0
0
answersQuestion
Can someone explain the error? Function with duplicate name dtree cannot be defined
load iris.dat %discretizeData discretizedData = zeros(150,5); for i = 1:size(iris,2) currentColumn = i...
ongeveer 8 jaar ago | 1 answer | 0
1
answerQuestion
Id3 code: I don't understand the error: It says undefined function dtree(trainData,[],0) for input args of type double. The 1st arg is the data, the 2nd is a list that contains a string for displaying the tree, the 3rd is the dominant label
load iris.dat %discretizeData discretizedData = zeros(150,5); for i = 1:size(iris,2) currentColumn = i...
ongeveer 8 jaar ago | 1 answer | 0
1
answerQuestion
I am new to matlab. I can't figure out the problem with this code. It won't execute. It's for naive bayes to classify setosa (class = 1) against combined versicolor and virginca (class = 0) without using gaussian pdf
load iris.dat %discretize data numBins = 5; dd = zeros(150,5); for q = 1:size(iris,2)-1 ...
ongeveer 8 jaar ago | 1 answer | 0
1
answerQuestion
I am new to programming. I need to build a decision tree to classify setosa (class =1 ) against combined virginca and versicolor (class = 2) in matlab
I have tried for days to come up with code. I just can't wrap my head around how I should build a tree and trace back to various...
ongeveer 8 jaar ago | 1 answer | 0
1
answerQuestion
I want to create a function best_attribute = findbestattribute(x1,x2,x3,x4) and I want x1, x2, x3 and x4 to be whole columns. How can I do this?
%This is what I have in mind load iris.dat function best_attribute(iris(:,1),iris(:,2),iris(:,3),iris(:,4)) %note t...
ongeveer 8 jaar ago | 1 answer | 0
1
answerQuestion
How to discretize?
Suppose I had 51,42,43,56,76,54,34,56,78,80 in a column how would I use discretize function to put the numbers between 50-59 in...
ongeveer 8 jaar ago | 1 answer | 1
1
answerQuestion
tree = fitctree(meas,species(50,:)) not working
I want to classify only setosa. Also, how do I determine the best categorical predictor for the split using the best_split_Att...
ongeveer 8 jaar ago | 1 answer | 0
1
answerQuestion
how do I get the names of the attributes?
load iris.dat iris(1,1) gives me the first value of the first column how do I access the name of the attribute?
ongeveer 8 jaar ago | 1 answer | 0
1
answerQuestion
How can I create an dynamically increasing array to store positions?
load iris.dat for i:size(iris,2)-1 if (iris(:,i)==iris(1,1) %store the row number in a dynamically increas...
ongeveer 8 jaar ago | 0 answers | 0
0
answersQuestion
I want to construct three tests.
If I have four columns, x1, x2, x3 and x4 I want to create the following three tests for the first values of all the four colum...
ongeveer 8 jaar ago | 1 answer | 0
1
answerQuestion
What is the best matlab data structure to represent a decision tree?
I want to be able to access the level of the tree and the number of nodes and the information of the nodes after a split. What i...
ongeveer 8 jaar ago | 2 answers | 0
2
answersQuestion
How to find count of an item in a column of data in matlab?
I need to find probabilities of each class for the implementation of a decision tree, in other words, the calculation of entropy...
ongeveer 8 jaar ago | 2 answers | 0
2
answersQuestion
How can I do a 50-50 split on data to obtain train and test datasets such that no value is common to both sets?
I am new to matlab and I can't find a function to do this.
ongeveer 8 jaar ago | 1 answer | 0