Homework #3

Homework #3

by Grishma -
Number of replies: 5

For question 4, do we add race and admit to the web? I filtered out race when the previous question said only to keep : "a continuous Age field ranging from 1 to 107, an admit variable (0/1), 4 body part variables (0/1), 3 diagnosis variables (0/1), a gender variable (0, 1, 2), and an Age_bin for our age groups.  ". Additionally, I considered all the new variables as flag and not nominal while the screen shot in the question has treat all the new variables as nominal. 

 

For question 5, would you like us to create a new variable for concussion or use one of our diagnosis variables?

In reply to Grishma

Re: Homework #3

by Isabel Elaine Allen -

Keeping the variables as Flag variables should be fine and easy to switch to Nominal.  Don't worry about the race field, it is not necessary in the model and you can use one of your own diagnosis variables instead of concussion.  It is the process rather than the product that we are interested in here.

In reply to Isabel Elaine Allen

Re: Homework #3

by Grishma -

Okay, thank you.

In reply to Grishma

Re: Homework #3

by Grishma -

When I attach the neural model gem to the logistic model gem, it does not let me run an analysis node saying that there are no matching pairs of target and predictor fields found. I even manually changed the target and predictor fields for each and it still says they do not match. 

In reply to Grishma

Re: Homework #3

by Isabel Elaine Allen -

You need to run the neural net and the logistic model from the same Type node to ensure that they have identical variable types and after the models are run you can't change the variable types in the nodes.  After running the models you can just copy the gem and then attach it to the other model.

It could look something like this.

Attachment Screen Shot 2016-08-17 at 9.24.58 PM.png
In reply to Isabel Elaine Allen

Re: Homework #3

by Grishma -

Thank you for your help Isabel. Much appreciated! I actually figured it out right after I posted to the thread. It was just that I didn't agree to the change when I was prompted to disconnect the gem and reattach it and I had manually reattached it after. I just attached new logistic and neural nodes and re-did it and it worked!