Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The source of target variables to train Tissue Classifier #9

Open
ShangWeiKuo opened this issue Sep 22, 2022 · 5 comments
Open

The source of target variables to train Tissue Classifier #9

ShangWeiKuo opened this issue Sep 22, 2022 · 5 comments

Comments

@ShangWeiKuo
Copy link

Excuse me.

I've tried to train tissue classifier, and I've realized how predictor variables are generated. However, I have no idea about the data format and the source of target variables.

Could you explain the data format and the source of target variables?

@ShangWeiKuo ShangWeiKuo changed the title The source of target variables of train Tissue Classifier The source of target variables to train Tissue Classifier Sep 22, 2022
@unimusic
Copy link
Contributor

Hi, can you again explain exactly what you are doing with an example? Thanks.

@ShangWeiKuo
Copy link
Author

ShangWeiKuo commented Sep 23, 2022

According to the picture below, the predictor variables of tissue classifier are the registered scans whose variables are named "image".


image


If I would like to retrain tissue classifier, I have to implement "clf.fit(X, y)".

Now I've known that "image" is predictor variable "X" in segUtils.py, but what is target variable "y" ?

@unimusic
Copy link
Contributor

Target variable y is the predicted class of each voxel from x_predict, which is the flattened image.

@ShangWeiKuo
Copy link
Author

I know that y is the predicted class of each voxel from x_predict. However, How could I get the target variable y from training dataset instead of the predicted one if I would like to retrain tissue classifier?

@unimusic
Copy link
Contributor

unimusic commented Sep 27, 2022

Ah, I didn't provide that in this repo. The clf is pretrained. You can create your own new predictor if you wish.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants