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;








-2















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.










share|improve this question

















  • 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


















-2















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.










share|improve this question

















  • 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














-2












-2








-2








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.










share|improve this question














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






share|improve this question













share|improve this question











share|improve this question




share|improve this question










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













  • 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













1 Answer
1






active

oldest

votes


















1














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.






share|improve this answer






















    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
    );



    );













    draft saved

    draft discarded


















    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









    1














    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.






    share|improve this answer



























      1














      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.






      share|improve this answer

























        1












        1








        1







        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.






        share|improve this answer













        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.







        share|improve this answer












        share|improve this answer



        share|improve this answer










        answered Mar 26 at 14:35









        TomKraljevicTomKraljevic

        2,6457 silver badges13 bronze badges




        2,6457 silver badges13 bronze badges


















            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.



















            draft saved

            draft discarded
















































            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.




            draft saved


            draft discarded














            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





















































            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







            Popular posts from this blog

            How to preserve electronics (computers, tablets and phones) for hundreds of years Announcing the arrival of Valued Associate #679: Cesar Manara Planned maintenance scheduled April 23, 2019 at 23:30 UTC (7:30pm US/Eastern) The network's official Twitter account is up and running again. What content…How might modern humans leave a message for 50,000 years?How would an aquatic race develop computers?How do we make computers care for human life?Keeping supplies for 1000 yearsWhat will cell phones become in 100 years?What body armor protects against a laser?Could a society attain 1800s technology if limited to using copper and bronze?Electricity power (magic) and electronicsScavenging metal resources in post-apocalypse after 100 yearsWhy would precursors create devices that can survive and still work after hundreds of years?

            155 수학 과학 기타 둘러보기 메뉴eh추가해eh문서를 완성해

            Convert JSON to MapSimplest way to convert a string representing JSON array into Java array List of key value pairsHow to take String JSON values into HashMapConvert a JSON String to a HashMapCreating BSON object from JSON stringJSONObject - How to get a value ?Better Map ConstructorReading JSON from Url javaUpdate columns if input values are not null otherwise ignore and keep the existing values of column in databaseHow to store object represented as Json string into Couchbase Lite?Go JSON into MapHow do I efficiently iterate over each entry in a Java Map?Sort a Map<Key, Value> by valuesHow to round a number to n decimal places in JavaCan comments be used in JSON?How do I read / convert an InputStream into a String in Java?How can I pretty-print JSON in a shell script?What is the correct JSON content type?How can I deserialize JSON to a simple Dictionary<string,string> in ASP.NET?Why does Google prepend while(1); to their JSON responses?Parse JSON in JavaScript?