R h2o.deeplearning obtaining probabilities with classification modeProbability and Neural NetworksA simple explanation of Naive Bayes ClassificationNon-linear classification vs regression with FFANNNeural Networks Regression : scaling the outputs or using a linear layer?Convert classification to regression in tensorflowH2o Grid-Search for Quantile Regression/Prediction IntervalPredict classes or class probabilities?Neural Network under fitting - breast cancer datasetTraining RMSE higher than Validation RMSE in H2OWhat to do when the training data has classification labels but the required task is probabillities?
How to slice a string input at a certain unknown index
Chilling water in copper vessel
How do ballistic trajectories work in a ring world?
Array or vector? Two dimensional array or matrix?
What are the effects of abstaining from eating a certain flavor?
Strong Password Detection in Python
My professor has told me he will be the corresponding author. Will it hurt my future career?
How to use Adostop Eco stop bath?
How do I use my adapted PS2 keyboard & mouse on a windows 10 computer?
What purpose does mercury dichloride have in fireworks?
Is there a formal/better word than "skyrocket" for the given context?
Is this car delivery via Ebay Motors on Craigslist a scam?
How can a person with a similar experience with the defendant, help the plaintiff in a lawsuit?
Is it possible to complete a PhD in CS in 3 years?
Can the word "desk" be used as a verb?
This LM317 diagram doesn't make any sense to me
Matrices with shadows
Editing start vertex of multiple elements synchronously using QGIS?
Computer name naming convention for security
SQL Server Sch-S locks on unrelated tables
As a supervisor, what feedback would you expect from a PhD who quits?
Tesco's Burger Relish Best Before End date number
How should I ask for a "pint" in countries that use metric?
Why did Robert F. Kennedy loathe Lyndon B. Johnson?
R h2o.deeplearning obtaining probabilities with classification mode
Probability and Neural NetworksA simple explanation of Naive Bayes ClassificationNon-linear classification vs regression with FFANNNeural Networks Regression : scaling the outputs or using a linear layer?Convert classification to regression in tensorflowH2o Grid-Search for Quantile Regression/Prediction IntervalPredict classes or class probabilities?Neural Network under fitting - breast cancer datasetTraining RMSE higher than Validation RMSE in H2OWhat to do when the training data has classification labels but the required task is probabillities?
.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty margin-bottom:0;
I am using h2o.deeplearning to train a neural network on a classification task.
What I have
Y ~ x1 + x2... where all x variables are continuous and Y is binary.
What I want
To be able to train a deeplearning object to predict the probability of a given row of being true or false. That is, a predicted(Y) restricted to between 0 and 1.
What I've tried
When Y is inputted as a numeric (i.e. 0 or 1), h2o deeplearning automatically treats it as a regression problem. This is fine, except the final layer of the NN is linear, not tanh, and the predicted values can be greater than 1 or less than 0. I've not been able to find a way to get the final layer to be a tanh.
When Y is inputted as categorical (i.e. TRUE or FALSE), h2o deeplearning automatically treats it as a classification problem. Instead of giving me the desired probability of Y being 1 or 0, it gives me its best guess of what Y is.
Is there a way around this? A trick, tweak or an overlooked parameter? I have noticed in the h2o.deeplearning documentation a 'distribution' parameter, but no further information on what that's for. My best guess is that it is some kind of link function in the same vein as GLM, but I'm not sure.
r regression classification h2o
add a comment |
I am using h2o.deeplearning to train a neural network on a classification task.
What I have
Y ~ x1 + x2... where all x variables are continuous and Y is binary.
What I want
To be able to train a deeplearning object to predict the probability of a given row of being true or false. That is, a predicted(Y) restricted to between 0 and 1.
What I've tried
When Y is inputted as a numeric (i.e. 0 or 1), h2o deeplearning automatically treats it as a regression problem. This is fine, except the final layer of the NN is linear, not tanh, and the predicted values can be greater than 1 or less than 0. I've not been able to find a way to get the final layer to be a tanh.
When Y is inputted as categorical (i.e. TRUE or FALSE), h2o deeplearning automatically treats it as a classification problem. Instead of giving me the desired probability of Y being 1 or 0, it gives me its best guess of what Y is.
Is there a way around this? A trick, tweak or an overlooked parameter? I have noticed in the h2o.deeplearning documentation a 'distribution' parameter, but no further information on what that's for. My best guess is that it is some kind of link function in the same vein as GLM, but I'm not sure.
r regression classification h2o
1
Well, you haven't offered any code. You haven't offered any data. And you haven't offered any links to sites whose documentation you have already researched, so we have no idea how much effort you put into this. I wonder if this might be closer to the topics handled at the beta data science section of stackexchange? (And don't blame me, they aren't my votes, so these are just guesses as to motivations.)
– 42-
Mar 26 at 0:23
add a comment |
I am using h2o.deeplearning to train a neural network on a classification task.
What I have
Y ~ x1 + x2... where all x variables are continuous and Y is binary.
What I want
To be able to train a deeplearning object to predict the probability of a given row of being true or false. That is, a predicted(Y) restricted to between 0 and 1.
What I've tried
When Y is inputted as a numeric (i.e. 0 or 1), h2o deeplearning automatically treats it as a regression problem. This is fine, except the final layer of the NN is linear, not tanh, and the predicted values can be greater than 1 or less than 0. I've not been able to find a way to get the final layer to be a tanh.
When Y is inputted as categorical (i.e. TRUE or FALSE), h2o deeplearning automatically treats it as a classification problem. Instead of giving me the desired probability of Y being 1 or 0, it gives me its best guess of what Y is.
Is there a way around this? A trick, tweak or an overlooked parameter? I have noticed in the h2o.deeplearning documentation a 'distribution' parameter, but no further information on what that's for. My best guess is that it is some kind of link function in the same vein as GLM, but I'm not sure.
r regression classification h2o
I am using h2o.deeplearning to train a neural network on a classification task.
What I have
Y ~ x1 + x2... where all x variables are continuous and Y is binary.
What I want
To be able to train a deeplearning object to predict the probability of a given row of being true or false. That is, a predicted(Y) restricted to between 0 and 1.
What I've tried
When Y is inputted as a numeric (i.e. 0 or 1), h2o deeplearning automatically treats it as a regression problem. This is fine, except the final layer of the NN is linear, not tanh, and the predicted values can be greater than 1 or less than 0. I've not been able to find a way to get the final layer to be a tanh.
When Y is inputted as categorical (i.e. TRUE or FALSE), h2o deeplearning automatically treats it as a classification problem. Instead of giving me the desired probability of Y being 1 or 0, it gives me its best guess of what Y is.
Is there a way around this? A trick, tweak or an overlooked parameter? I have noticed in the h2o.deeplearning documentation a 'distribution' parameter, but no further information on what that's for. My best guess is that it is some kind of link function in the same vein as GLM, but I'm not sure.
r regression classification h2o
r regression classification h2o
asked Mar 25 at 21:42
IngolifsIngolifs
1216 bronze badges
1216 bronze badges
1
Well, you haven't offered any code. You haven't offered any data. And you haven't offered any links to sites whose documentation you have already researched, so we have no idea how much effort you put into this. I wonder if this might be closer to the topics handled at the beta data science section of stackexchange? (And don't blame me, they aren't my votes, so these are just guesses as to motivations.)
– 42-
Mar 26 at 0:23
add a comment |
1
Well, you haven't offered any code. You haven't offered any data. And you haven't offered any links to sites whose documentation you have already researched, so we have no idea how much effort you put into this. I wonder if this might be closer to the topics handled at the beta data science section of stackexchange? (And don't blame me, they aren't my votes, so these are just guesses as to motivations.)
– 42-
Mar 26 at 0:23
1
1
Well, you haven't offered any code. You haven't offered any data. And you haven't offered any links to sites whose documentation you have already researched, so we have no idea how much effort you put into this. I wonder if this might be closer to the topics handled at the beta data science section of stackexchange? (And don't blame me, they aren't my votes, so these are just guesses as to motivations.)
– 42-
Mar 26 at 0:23
Well, you haven't offered any code. You haven't offered any data. And you haven't offered any links to sites whose documentation you have already researched, so we have no idea how much effort you put into this. I wonder if this might be closer to the topics handled at the beta data science section of stackexchange? (And don't blame me, they aren't my votes, so these are just guesses as to motivations.)
– 42-
Mar 26 at 0:23
add a comment |
1 Answer
1
active
oldest
votes
If you treat the problem as a binary classification problem then you not only get the “prediction” of 0 or 1, but also the p0 and p1 probabilities that add up to 1. These are the probabilies that the predicted value is the negative and positive class, respectively.
Then just use p1 directly.
add a comment |
Your Answer
StackExchange.ifUsing("editor", function ()
StackExchange.using("externalEditor", function ()
StackExchange.using("snippets", function ()
StackExchange.snippets.init();
);
);
, "code-snippets");
StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "1"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);
else
createEditor();
);
function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);
);
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55346860%2fr-h2o-deeplearning-obtaining-probabilities-with-classification-mode%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
If you treat the problem as a binary classification problem then you not only get the “prediction” of 0 or 1, but also the p0 and p1 probabilities that add up to 1. These are the probabilies that the predicted value is the negative and positive class, respectively.
Then just use p1 directly.
add a comment |
If you treat the problem as a binary classification problem then you not only get the “prediction” of 0 or 1, but also the p0 and p1 probabilities that add up to 1. These are the probabilies that the predicted value is the negative and positive class, respectively.
Then just use p1 directly.
add a comment |
If you treat the problem as a binary classification problem then you not only get the “prediction” of 0 or 1, but also the p0 and p1 probabilities that add up to 1. These are the probabilies that the predicted value is the negative and positive class, respectively.
Then just use p1 directly.
If you treat the problem as a binary classification problem then you not only get the “prediction” of 0 or 1, but also the p0 and p1 probabilities that add up to 1. These are the probabilies that the predicted value is the negative and positive class, respectively.
Then just use p1 directly.
answered Mar 26 at 14:35
TomKraljevicTomKraljevic
2,6457 silver badges13 bronze badges
2,6457 silver badges13 bronze badges
add a comment |
add a comment |
Got a question that you can’t ask on public Stack Overflow? Learn more about sharing private information with Stack Overflow for Teams.
Got a question that you can’t ask on public Stack Overflow? Learn more about sharing private information with Stack Overflow for Teams.
Thanks for contributing an answer to Stack Overflow!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55346860%2fr-h2o-deeplearning-obtaining-probabilities-with-classification-mode%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
1
Well, you haven't offered any code. You haven't offered any data. And you haven't offered any links to sites whose documentation you have already researched, so we have no idea how much effort you put into this. I wonder if this might be closer to the topics handled at the beta data science section of stackexchange? (And don't blame me, they aren't my votes, so these are just guesses as to motivations.)
– 42-
Mar 26 at 0:23