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
1 vote
1 answer
25 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-...
user avatar
1 vote
1 answer
21 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,...
user avatar
  • 13
0 votes
0 answers
18 views

I want to create a network graph with multiple features on python

I have a dataframe of stock tickers which have a few features. Below is the dataframe: Currently I am using networkx and pyvis to create network graphs. At the moment, I'm only able to use either one ...
user avatar
  • 1
0 votes
1 answer
56 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....
user avatar
  • 11
0 votes
0 answers
17 views

Colab Pro+ notebook stopped being busy when reopened without producing any output

I am training a fairly large dataset on Colab Pro+ with background execution. While the cell is running, the status reads 'busy' and I can check from the Resources tab that the notebook is indeed ...
user avatar
  • 1
0 votes
1 answer
18 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:
user avatar
-1 votes
1 answer
461 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 ...
user avatar
0 votes
0 answers
23 views

How can i merge two datasets with similar words in python?

For instance i have a row value on the dataset_1 : "Entity" = Apple dataset_2 : "Entity" = iCloud Apple (Entity is the column) I need to merge one dataset to the other by the ...
user avatar
0 votes
1 answer
24 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 ...
user avatar
1 vote
0 answers
50 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()
user avatar
0 votes
0 answers
145 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 ...
user avatar
  • 1
0 votes
0 answers
20 views

Use SQL Server for Jupyterhub hub?

This page describes the Jupyterhub Hub database setup: https://jupyterhub.readthedocs.io/en/stable/reference/database.html Instructions (and the config so far) point to using either PostgreSQL or ...
user avatar
0 votes
0 answers
7 views

I want to do analysis on trends moving across categories . What I want to know is what are the suitable ways to identify a moving trend

For en example for a trend movement is USA Beverage moves to USA Alcoholic Beverage after some time. So what are the statistical tests available to identify about this kind of movement in two time ...
user avatar
1 vote
0 answers
25 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.
user avatar
1 vote
0 answers
31 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 ...
user avatar
  • 11
2 votes
1 answer
63 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 ...
user avatar
1 vote
1 answer
272 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 ...
user avatar
  • 13
0 votes
0 answers
38 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 ...
user avatar
1 vote
0 answers
37 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 ...
user avatar
  • 111
0 votes
0 answers
75 views

Training a DeepAR time series model with monthly data. Can only train on Daily

I am training a DeepAR model (arXiv) in Jupyter Notebook. I am following this tutorial. I create a collection of time series (concat_df), as needed by the DeepAR ...
user avatar
0 votes
1 answer
27 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. ...
user avatar
  • 101
1 vote
2 answers
203 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 ...
user avatar
5 votes
4 answers
802 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'...
user avatar
  • 349
2 votes
0 answers
70 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 ...
user avatar
  • 131
1 vote
2 answers
2k 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,...
user avatar
0 votes
0 answers
33 views

Can kaggle notebook run without websocket? It is stuck at session starting on laptop

I am running a laptop in which internet works only by connecting a VPN. However, seems like that VPN does not like below websocket which is required to run Kaggle Notebooks. I dont have other option ...
user avatar
0 votes
1 answer
38 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 ...
user avatar
  • 115
0 votes
1 answer
65 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 ...
user avatar
0 votes
1 answer
905 views

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

I have written this code: ...
user avatar
0 votes
1 answer
2k 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. ...
user avatar
1 vote
2 answers
203 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? ...
user avatar
  • 25
0 votes
0 answers
23 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 ...
user avatar
1 vote
2 answers
66 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 ...
user avatar
  • 31
0 votes
2 answers
2k 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 ...
user avatar
1 vote
1 answer
876 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 ...
user avatar
0 votes
1 answer
3k 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'...
user avatar
1 vote
0 answers
33 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 ...
user avatar
  • 31
2 votes
1 answer
70 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 ...
user avatar
  • 157
0 votes
1 answer
422 views

How to retrieve tweets from all cities using Twint package in python?

Using Twint, I'm able to get tweets from each city in the list, but while creating a dataframe I only get tweet from the last city in the list, is it possible to append the tweets based on cities? <...
user avatar
  • 31
0 votes
1 answer
32 views

keras mnist dataset

I am learning Neural Network. I was running following source code ...
user avatar
0 votes
1 answer
225 views

unable to predict by LinearRegression

Should I add csv as text in SO question? There's lot more data. ...
user avatar
3 votes
0 answers
14 views

Running DenseNet from cmd line and jupyter but vastly Different loss and accuracy [closed]

I’m running a DenseNet121 from Pytorch with the same exact code, same exact hyper parameters and same exact image sizes, once from a jupyter notebook and once using the command line via a python ...
user avatar
  • 73
2 votes
1 answer
3k views

How can i increase the memory of Jupyter?

What I have: I have a data set (35989 rows × 16109 columns) and is unfortunately confidential. But i receive this error massage: ...
user avatar
  • 47
0 votes
1 answer
2k views

How to show two pictures in one cell in Jupyter Notebook? (matplotlib) (python) [closed]

As a beginner, can someone please help me with this? Is there any way to show both pictures in a single cell's output? My output could only display one picture. Thank you for your time and attention! ...
user avatar
  • 3
0 votes
1 answer
49 views

Access keys of pandas dataframe when using groupby

I have the following database: And I would like to know how many times a combination of BirthDate and Zipcode is repeated throughout the data table: Now, my question is: How can I access the keys of ...
user avatar
  • 113
0 votes
2 answers
7k views

ValueError: y should be a 1d array, got an array of shape (1045, 5) instead [closed]

I have just started Python and working on training models. The task that I have been assigned is to train a dataset named "austin_Weather" Original Dataset y attribute After having done some ...
user avatar
0 votes
1 answer
44 views

Ordering a material science dataset (properties names, properties scalars, formulas)

I'm dealing with a materials science dataset and I'm in the following situation, I have data organized like this: ...
user avatar
0 votes
0 answers
164 views

outliers in time series

I have a data set like the following where the rows are dates and the columns are values recorded by different sensors on those dates. Before working with the data for the purpose of predicting it, I ...
user avatar
  • 109
1 vote
0 answers
72 views

Issue with miscount on test train split in Python

Problem Hey everyone. I think I am missing something incredibly easy, but because I am wokring in resampling for the first time it is giving me all sorts of inadequacy. I performed an ADASYN up sample ...
user avatar
  • 11
1 vote
1 answer
316 views

How to choose between Tensorflow and Pytorch?

Recently I've been working on a pretty vanilla ANN model in Python with sklearn (and its preprocessing pipeline), mostly in jupyterhub notebooks if that matters. I am considering changing the ...
user avatar
  • 2,145