Questions tagged [python-3.x]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0
votes
0answers
6 views

How to find out if a given number/text is missing from index of a multi-index pandas dataframe? [migrated]

I have a multi-index pandas dataframe as in below. What I want is to figure out if a particular level1 index is present given a particular level 0 index. To be clear, notice that for level 0 index "...
2
votes
0answers
32 views

Multi-output regression python

I am new to machine learning and cannot figure a way to solve this problem: I have X which is always one row/record while the y can be a row or more. Here is a simple sample from my data-set, 'i ...
2
votes
1answer
20 views

how to sort a multi-level pandas data-frame by a particular column?

I want to sort a multi-index pandas dataframe by a column but don't want the entire dataframe to be sorted at once. But rather want to sort by one of the indices. Here is an example of what I mean: ...
1
vote
0answers
18 views

Lemmatization of pandas column using Wordnet after POS

I have a pandas column df_travail[line_text] with text. I want to lemmatize each word of this column. First I Lowercase the text : ...
-2
votes
1answer
33 views

NumPy — ImportError: PyInit__multiarray_umath [closed]

I'm facing the below error while importing NumPy library. I have tried all of the suggestions advised by Python in its error log, but no luck. Strangely, when I use Python's OS library and print the "...
0
votes
1answer
27 views

Spacy v2.0.1 custom NER: How to improve training of existing model

I implemented custom NER with bellow trained data first time and it gives me good prediction with Name and PrdName. I mentioned code bellow. ...
0
votes
0answers
13 views

Running python project with several .py on Google Colab

Running python project with several .py on Google Colab On Google colab, I tried to execute a python project which has several python files (.py). I have saved all files in my google drive and ...
2
votes
2answers
44 views

Python Pandas agg error

I am trying to generate descriptive statistics using agg function in Pandas. I am having trouble with one line with a lambda function. They work when I run them as separate lines of code, but when I ...
1
vote
0answers
47 views

Expected performance of training tf.keras.Sequential model with model.fit, model.fit_generator and model.train_on_batch

I am using Keras with Tensorflow backend to train a simple 1D CNN to detect specific events from sensor data. While the data with tens of millions samples easily fits to the ram in the form of an 1D ...
0
votes
2answers
39 views

Different results for LogisticRegression on python 2.7 and 3

I have different results for the same kernel on python 2.7 (local machine) and python3 (the system running on kaggle) for LogisticRegression. How it is possible? Here my results from my local machine:...
0
votes
1answer
103 views

Calibrating Correlation

I am facing a weird problem in my on going project and thought if someone here could help me out with this. Actually I have large data set. I have to perform a regression task on top of that. While ...
1
vote
1answer
26 views

Is there a python code to perform the following task in python

Is there a way by which I can find how many people rated below 60% or how much percentage of people gave a rating of less than ...
1
vote
1answer
20 views

How should I improve my Vectorized Gradient descent linear regression model?

I wrote a vectorized Gradient descent implementation of the linear regression model. The Dataset looks something like: It's Not Working properly as I am getting negative R Squared error I don't ...
0
votes
1answer
63 views

Unable to import xgboost 0.9

When running import xgboost as xgb print(xgb.__version__) I am getting the following error: ...
0
votes
0answers
51 views

Logistic Regression Plotting Learning Curve and Decision Boundary with Python

I already trained a dataset with Logistic Regression. However , I could not find any plotting code blocks of learning curve and decision boundary of my trained data. I put my codes at below. So , how ...
0
votes
0answers
33 views

How to add new csv file data into training LSTM model to predict next future value using python

Here I have a data csv file with four inputs. I want to predict next value using LSTM model. first of all I train the LSTM model with data. Here is my code: ...
0
votes
0answers
13 views

Scraping mixed elements and passing to SQL

I'm running webscrapes via python which are retrieving data from csv's hosted on the web. I'd like to pass the data into a MSSQL database. An issue I have is the mixed elements/data types in the csv....
0
votes
0answers
9 views

From stationary value to original value

...