Questions tagged [jupyter]

Jupyter is a collection of environments and protocols for interactive computing. It supports many languages and kernels, and works with frontends including the web application Jupyter Notebook. Jupyter was split from IPython in 2015, and Jupyter Notebook is based on IPython Notebook.

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

vscode cannot reconnect to existing jupyter notebook server when waking my laptop

I recently switched from browser to vs code for using jupyter notebook and the IDE-like features (e.g. auto-complete, debugging, etc) provided by VS code is really so much better than a browser. But ...
username123's user avatar
1 vote
1 answer
24 views

keep track of all versions of variable values corresponding to a version (commit) of code in jupyter notebook

I am a data analyst and use jupyter notebook for various data explorations. Since I often modify code a lot, one issue I constantly have is lost track of which code version a specific variable ...
username123's user avatar
0 votes
1 answer
96 views

Splitting CSV data with missing target variable using train_test_split in Python

I have a dataset in CSV format that consists of a training dataset with around 300 instances and a test dataset with around 100 instances. The issue is that the target variable (the column we want to ...
Yasmine Bzgn's user avatar
0 votes
0 answers
26 views

Help with running topology GAN (TopoGAN)

Link: https://github.com/TopoXLab/TopoGAN-ECCV2020 Sorry if this is the wrong place to ask, but I've been looking for help on how to work this out for a long time as I don't have much experience in ...
fds-mqdwqmqkdwl's user avatar
0 votes
1 answer
275 views

How do I prevent ConfusionMatrixDisplay.from_predictions from showing the plot?

ConfusionMatrixDisplay docs say: It is recommend to use from_estimator or from_predictions ...
Dmitry Minkovsky's user avatar
0 votes
0 answers
16 views

How do I get ktrain to return a multilabel output in tabular regression?

So the output vector I'm training a ktrain model on is 2 dimensional (the outputs are ['Temp', 'Velo']. And ktrain is even able to compute these when I use predictor.predict (see attached image), but ...
Sisyphus's user avatar
0 votes
0 answers
306 views

ValueError: X has 40 features, but RandomForestRegressor is expecting 32 features as input

...
nesly's user avatar
  • 1
0 votes
1 answer
173 views

Plot multiple catplots from a dataframe

I have a dataframe and I want to plot multiple catplots. I want to use a loop but i do not know how to code one for this. Any examples? ...
ahmike's user avatar
  • 1
2 votes
2 answers
1k views

Is it possible to work with AWS Sagemaker Studio Notebooks using a local IDE?

Is it possible to work with AWS Sagemaker Studio Notebooks using an IDE such as VSCode or PyCharm/IntelliJ running on my local machine? And if yes, how? Ideally I'd like to want to connect to the ...
florian's user avatar
  • 121
0 votes
0 answers
211 views

Install package from conda-forge

I am trying to install the TRIQS package from conda-forge. As mentioned here, I used conda install -c conda-forge triqs on ...
Bekaso's user avatar
  • 101
0 votes
0 answers
20 views

Running all cells again adding new rows instead of return new dataframe

i am creating a class just like lazypredict library but with k fold support and return a data frame withh the mean score of every model every thing works and i can ...
Burhan Khanzada's user avatar
0 votes
2 answers
1k views

pl.datetime plots as days since epoch or 1970, if formatted - polars and matplotlib

I'm attempting to port some old reports from Pandas to Polars. I am happy with the data, and am now attempting to plot a few time series. This is working, but I'm finding that matplotlib just doesn't ...
draeath's user avatar
  • 123
0 votes
2 answers
38 views

What ML Algo should I use to plot & predict customer location vs. amount spent?

Im using real customer csv files from my ecommerce store. I was initially going to use k cluster with 2 values. I want the two values to be Province Code, and amount spend on my store. This will ...
ChickenJoe's user avatar
0 votes
1 answer
97 views

numpy power function output for 2 to the power 63

I am running some test code and observed something strange. the numpy power function giving strange output post 2 to the power 62 ...
veer7's user avatar
  • 146
0 votes
0 answers
474 views

Problems with implementing LIME

Hope you are holding on tight, Christmas soon! **Updates: I'm only able to get the results in probability but I want it in pure binary (0 or 1). I tried using .predict instead of predict_proba(x_test) ...
Ostlimpa's user avatar
0 votes
0 answers
91 views

How to use my resampled data (through SMOTE) for my models?

I'm quite new to Python coding so maybe this is an obvious thing. I am dealing with an imbalanced data set. I have encoded the categorical features and transformed them into numpy.array. After this, I ...
Ostlimpa's user avatar
0 votes
1 answer
89 views

How do I Profile a Jupyter Cell and Rank it by Cumulative Time?

I'm using SciKit-Learn's OneHotEncoder to encode some categorical features. However, the time complexity of the function seems to have an exponential dependence on ...
Connor's user avatar
  • 617
0 votes
1 answer
300 views

Image is rendered when I run jupyter notebook locally, but the image is not rendered when I see the same jupyter notebook on github

I went on github issues to find solutions from people who has similar issue but none of them worked for me. Can someone please help?
Nerdy19's user avatar
0 votes
1 answer
451 views

Colab Pro+ CNN GPU memory saturation

I have a problem when executing jupyter notebook for CNN in colab pro+, to train a model with a size of 560664x48x48x1. normally the data is composed of images with a size of 48x48. I used 10 fold ...
user1655410's user avatar
1 vote
1 answer
589 views

Reproduce Keras training results in Jupyter Notebook

I am using keras and Jupyter notebook and want to make my results reproducible every time I ran it. This is the tutorial I used https://machinelearningmastery.com/time-series-prediction-lstm-recurrent-...
user900476's user avatar
1 vote
1 answer
35 views

I want to make a model that minimizes the heat supply, what should I do?

I am a beginner Python user. My weather data is made up of various variables. It consists of three months of one-minute time data, ambient environmental data (sunlight, ambient temperature, wind speed,...
jayjang's user avatar
  • 13
0 votes
2 answers
3k views

Tensorflow gpu not available for jupyter notebook

I am trying to make tensorflow work with gpu support. First I have tensorflow-gpu installed: However, there is no gpu available....
ptushev's user avatar
  • 11
0 votes
1 answer
37 views

How to count words in a dataframe?

I would like to count how many Male and female who answer (ex. Biking / Cycling). Below is the sample data:
Jasmine's user avatar
-1 votes
1 answer
3k views

AttributeError: 'NoneType' object has no attribute 'landmark'

I am on windows, using jupyter notebook, Mediapipe:Holistic Solution, Python, tensorflow. I am using a Holistic solution and trying to get the left hand, right hand and pose landmarks. I am giving my ...
Escanor6's user avatar
0 votes
1 answer
38 views

Using large files in a OVHcloud AI notebook

I’m trying to train an artificial intelligence model on OVHCloud AI Notebooks with the Common Voice’s dataset from Mozilla. The problem is that this database has a 70 GB size. I have tried to download ...
Mathieu's user avatar
1 vote
0 answers
282 views

Reduce MNIST dataset

I am working on the MNIST dataset. How I can reduce 50% of this data? (x_train, y_train), (x_test, y_test) = keras.datasets.mnist.load_data()
Salman Al-haddad's user avatar
0 votes
1 answer
878 views

gym car racing v0 using DQN

I am currently learning reinforcement learning and wanted to use it on the car racing-v0 environment. I have successfully made it using PPO algorithm and now I want to use a DQN algorithm but when I ...
Din's user avatar
  • 1
1 vote
0 answers
40 views

Posting Jupyter notebooks for blind review

Is there an elegant way to post Jupyter notebooks for blind review, so that no author is identifiable? I could get a throwaway Google account or something, but I was hoping there was a better way.
Steve Petersen's user avatar
1 vote
0 answers
92 views

px.choropleth not showing any map, but just the legend!

I am unable to figure out why below code doesn't give proper o/p as maps, but just legends. *Summary_Table is my data_frame that contains 'id' and 'Total Deaths' and geojson_data contains the location ...
nve's user avatar
  • 11
2 votes
1 answer
511 views

Correlating & Combining categorical and numerical features for classification problem

I just started with my first Machine Learning project (Jupyter Notebook, Python, Scikit-learn, pandas) and I am working on a Palmer Penguin Dataset. I have been doing some data analysis and I got ...
schemabuoi's user avatar
1 vote
1 answer
694 views

SMOTE for multi-class balance changes the shape of my dataset

So I have a dataset of shape (430,17), that consists of 13 classes (imbalanced) and 17 features. The end goal is to create a NN which btw works when I import the imblanced dataset, however when i try ...
rSar's user avatar
  • 13
0 votes
0 answers
162 views

Text Classification for columns with numbers, string and special characters

I have a dataframe with 3 columns and 1 label Here is an example of a row ...
user128219's user avatar
1 vote
0 answers
83 views

How to use k_means algorithms on likert dataset?

I have a dataset of 10,000 customers with ten features all of which are Likert type. Like this: customer feature1 feature2 feature3 ID1 3 1 5 ID2 4 5 4 ID3 3 5 1 ID4 1 3 2 ID5 2 5 1 ID6 1 3 4 ...
SA12's user avatar
  • 111
0 votes
1 answer
99 views

When using Jupyter (R kernel) and the keras library. When a cell is run there is no output. W/no output, there's no way knowing code functions.?

The keras digit object detection code does actually run in Jupyter using the R kernel. But it took three attempts to recognize that there wasn't an issue with Jupyter, or the R kernel, or the code. ...
Gray's user avatar
  • 101
1 vote
2 answers
1k views

Multiple Merges make the data frame in pandas to explode and causing Memory Issue in jupyter notebook

I have made a multiple merges using pandas data frame (refer the example script below). It made the data frame to explode and consume more memory as it records reach to 18 Billion in ...
Devendran's user avatar
5 votes
4 answers
3k views

Best platform to work with when having millions of rows in dataframe

I have table with around 20 features and millions of observations (rows). I need to create model base on this table, however, as it is huge, training models like random forest or XGB takes forever. I'...
Reut's user avatar
  • 349
2 votes
0 answers
116 views

Does Anaconda does not yet support Python 3.9.x? [closed]

I have downloaded and installed Python 3.9.7 (the latest version to date) on my Windows. It is installed and working fine using command prompt or VS code. But Anaconda (I use Jupyter NB) still shows ...
SJa's user avatar
  • 131
2 votes
2 answers
9k views

ML : Found input variable with inconsistent numbers [closed]

I am trying an Retail ML project, but am stuck on the Error "Found input variables with inconsistent numbers of samples: [982644, 911]". I tired many thing & I know why this error occurs,...
Parikshit Bharadwaj's user avatar
0 votes
1 answer
40 views

Speculation regarding rising trend in softwares with a potential in diminishing the role of a data scientist [closed]

I have recently came across a demo of for a software that's built on natural language processing and its job is to convert a text the user types on a Python interpreter such as Jupyter and the ...
SPARSE's user avatar
  • 115
0 votes
1 answer
132 views

Deployment in AzureML for NLP with fastText

I am new to Azure ML. I am working on sentimental analysis on a small tweet dataset with the help of fastText embedding (fastText file 'wiki-news-300d-1M.vec' is around 2.3 GB which I downloaded in my ...
cris2019's user avatar
0 votes
1 answer
4k views

I am getting this error ValueError: not enough values to unpack (expected 4, got 2)

I have written this code: ...
Yhogi Alawdi's user avatar
0 votes
1 answer
5k views

Bar plot not showing up in Jupyter Notebook

I am trying to create a bar plot for a Pandas Series and the bar plot is not showing up in Jupyter notebook. When I run the cell, I only get the following and I do not see the bar plot. ...
Brindha Ganesan's user avatar
1 vote
2 answers
534 views

Error when trying to obtain accuracy score for classifiers

I am trying to get an accuracy score for the classifiers but I keep getting this error TypeError: predict() missing 1 required positional argument: 'X' Can anyone help? ...
T97's user avatar
  • 25
0 votes
0 answers
103 views

JupyterNotebook exporting graphs as SVG unintentionally cropped

Within JupyterNotebook the graphs are perfectly rendered and look great, however I cannot figure out why it's (unintentially) cropping my graphs during the exporting, such that the axis descriptions ...
Godgory's user avatar
1 vote
2 answers
297 views

How does checkpoint works to find the very best model during training? [closed]

When filepath="weights-improvement-{epoch:02d}-{val_acc:.2f}.hdf5" I get key error val_acc (I use tensorflow 1.14.0). When ...
Mathew's user avatar
  • 31
0 votes
2 answers
4k views

Jupyter, Python: the kernel appears to have died while training a model on a big amount of data

I am training my model on almost 200 000 images, i'm using Jupyter and now after 3 days of training ( i used 800 epochs and batch-size = 600) I have this " the kernel appears to have died. It ...
Lema Zaidi's user avatar
1 vote
1 answer
4k views

Changing duplicate a line hotkey in Jupyter notebook [closed]

To duplicate a line in Jupyter-notebook on a Mac, the hotkey is cmd + shift + D. The problem is I use Google Chrome, and this is the same hotkey to bookmark a ...
anonuser01's user avatar
0 votes
1 answer
6k views

Reading a json-file from an API, getting "AttributeError: 'Response' object has no attribute 'data' "error

Title says it all. Im trying to read a json file im accessing via an API. But when I try, I get the error: 'AttributeError: 'Response' object has no attribute 'data'...
L. Nielsen's user avatar
1 vote
0 answers
56 views

How to resolve IndexError while doing Monte Carlo for 1000 runs? [closed]

Below code runs without any problem, however when I run the same code using Monte Carlo Analysis for 1000 runs, it gives IndexError. Can someone explain why this happens. Thanks ...
Mathew's user avatar
  • 31
2 votes
1 answer
99 views

Notebook for data science

I'm searching for an online Jupiter notebook environment that allows collaborating in real-time. I've found that I've choice from two services Deepnote.com and DataLore by JetBrains. I have little ...
Igor Igor's user avatar
  • 157