Python Forum
Search Results
Post Author Forum Replies Views Posted [asc]
    Thread: Outputing LogisticRegression Coefficients (sklearn)
Post: RE: Outputing LogisticRegression Coefficients (skl...

Could I use the example from?... https://stackoverflow.com/questions/2792...regression# # Manual P-Values lr = LogisticRegression(solver='lbfgs', class_weight='balanced') lr.fit(X, y) params = np.ap...
RawlinsCross Data Science 6 4,785 Feb-27-2020, 02:47 PM
    Thread: Outputing LogisticRegression Coefficients (sklearn)
Post: RE: Outputing LogisticRegression Coefficients (skl...

Okay, imported the statsmodel module and got it to work. One question though about this - is the Logit class able to replicate certain features from LogisticRegression from sklearn.linear_model? Spe...
RawlinsCross Data Science 6 4,785 Feb-25-2020, 07:37 PM
    Thread: Outputing LogisticRegression Coefficients (sklearn)
Post: RE: Outputing LogisticRegression Coefficients (skl...

Perhaps I can add an additional (but related) twist. Now that I have the coefficients - is there additional outputs that show the standard error of those coefficients and their corresponding p-values...
RawlinsCross Data Science 6 4,785 Feb-22-2020, 01:00 PM
    Thread: Outputing LogisticRegression Coefficients (sklearn)
Post: RE: Outputing LogisticRegression Coefficients (skl...

Hi scidam, Yeah, I was getting tripped up with the Pipeline and using model.coef_ which threw an error as Pipeline doesn't have such an attribute. Glad to see there's an easy fix in this case. Sorr...
RawlinsCross Data Science 6 4,785 Feb-22-2020, 10:48 AM
    Thread: Outputing LogisticRegression Coefficients (sklearn)
Post: Outputing LogisticRegression Coefficients (sklearn...

Good day, I'm using the sklearn LogisticRegression class for some data analysis and am wondering how to output the coefficients for the predictors. I'm using a Pipeline to standardize and power t...
RawlinsCross Data Science 6 4,785 Feb-21-2020, 08:36 PM
    Thread: Feeding new data to a model
Post: Feeding new data to a model

Good evening, kindof a beginner question here on how to properly feed new data (i.e. not seen during the model development) to a binary classification model. I have run my training and test data on s...
RawlinsCross Data Science 0 1,806 Feb-01-2020, 10:47 PM
    Thread: Dataframe.hist() labels overlapping graphs
Post: RE: Dataframe.hist() labels overlapping graphs

Hey Larz, thanks for getting back. So I had a dataset with 10 columns of data and the subplots of histograms had all sort of overlapping of titles with the graphs when using jupyter. Ended up fixi...
RawlinsCross Data Science 2 4,566 Jan-14-2020, 03:02 PM
    Thread: Dataframe.hist() labels overlapping graphs
Post: Dataframe.hist() labels overlapping graphs

Good day, I have a csv file that has a header row. When I put it into a dataframe and run the .hist() I get a the labels for the individual graphs overlapping all the graphs. Is there anyway to lab...
RawlinsCross Data Science 2 4,566 Jan-12-2020, 04:58 PM
    Thread: Matplotlib Hovering Event displaying (x, y) data
Post: Matplotlib Hovering Event displaying (x, y) data

Hey, I'm an Unladed Swallow - how bout that!. Anyhooo….I have an excel graph that has x data in column A starting in row 7 and several columns of y data. I search out a given column through a unique...
RawlinsCross General Coding Help 0 6,220 Oct-18-2019, 06:13 PM

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020