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
1 answer
396 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
20 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 ...
dohm's user avatar
  • 73
2 votes
1 answer
8k 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: ...
JiJoik's user avatar
  • 47
0 votes
1 answer
3k 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! ...
jfm's user avatar
  • 3
0 votes
1 answer
151 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 ...
Arnau's user avatar
  • 113
1 vote
2 answers
12k 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 ...
Sakib Khan's user avatar
0 votes
1 answer
55 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: ...
James Arten's user avatar
0 votes
0 answers
242 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 ...
user60108's user avatar
  • 109
1 vote
0 answers
90 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 ...
ChrisP's user avatar
  • 11
2 votes
1 answer
806 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 ...
lcrmorin's user avatar
  • 2,405
0 votes
1 answer
835 views

Calculate all days for each years between two dates in a pandas dataframe

I'm new in python and coding. I'm doing a university project exercise. Last question is : " For each year, compute the total amount of loans. Each loan that has planned expiration time and ...
user avatar
1 vote
2 answers
143 views

What does a blue empty cell mean [ ] in Anaconda if the cell above is still [*]?

I've been running a machine learning algorithm for two days now, I have a large dataset and a slow machine. I noticed today that the cell below the "fit model" cell turned from green to blue,...
geekys's user avatar
  • 13
0 votes
1 answer
27 views

What common/simple problem would work well as a web app? [closed]

Context I'm currently writing a simple tutorial to demonstrate a tool to data scientists and analysts that turns Jupyter Notebooks into web apps. Basically, it discusses setting up the web app as a ...
Ryan Britnell's user avatar
4 votes
1 answer
1k views

Has anyone succeeded in finding a good Scala/Spark kernel for Jupyter?

The ones I've tried so far Almond: Works very well for just Scala, but you have to import dependencies, and it gets tedious after a while. And unfortunately can't run when using Spark with YARN ...
Varun Gawande's user avatar
0 votes
1 answer
69 views

Classification or regression problem?

I have a table with this features: ...
TOMAS's user avatar
  • 1
2 votes
1 answer
984 views

Running Jupyter notebook on remote server with local files

I would like to train my model faster and that's why would like to create a standalone remote machine with GPU support. The solution I am looking for is to have the data locally on my machine and to ...
Mutatos's user avatar
  • 181
13 votes
5 answers
18k views

Generate pdf from jupyter notebook without code

I have a Jupyter notebook that contains markdown, code, and outputs (graphs). I would like to generate PDF from this notebook. I tried to hide code using HTML code which I get from here then I tried ...
GIRISH kuniyal's user avatar
2 votes
1 answer
379 views

Multiple models in the same notebook

Having working on data sets, sometimes we want to keep track of mtiple models with different architectures which work on the same data set on which we have made some transformations and preprecessing ...
Shrijit Basak's user avatar
2 votes
0 answers
1k views

How to remove outliers from each group within a boxplot?

I am wanting to remove all the outliers for each individual ID in a boxplot. I have tried the following code: ''' ...
A.H's user avatar
  • 31
6 votes
3 answers
22k views

How to setup and run Conda on Google Colab

I am interested in using Google Colab for data modeling. How do I install conda, create an environment and run python in a notebook? I did some searching and found some helpful hints, but had several ...
Donald S's user avatar
  • 1,879
0 votes
1 answer
34 views

Split a string and create a news columns with parents

let's say I have this dataframe, and I would like to split it into several after (.) and have it like that, with levels
FollB's user avatar
  • 13
1 vote
1 answer
2k views

Scalling and unscalling of data for SVR prediction

I'm trying to use SVR to predict a certain feature. I create the model with the following code: ...
MyName's user avatar
  • 137
1 vote
1 answer
75 views

PCA - what do I do with its results?

I have a data set with more than 20 features, and I applied PCA: ...
MyName's user avatar
  • 137
0 votes
2 answers
8k views

Creating bar plot with frequency distribution based

I have a dataframe with this kind of structure: ...
MyName's user avatar
  • 137
0 votes
1 answer
2k views

Changing the default scale of a plot to a "custom scale"

I am trying to change the scale of the x_axis for a plot. The default is generating divisions of 20 units (0-20-40-60-80-100-120). I tried changing to log, but then I get 0-10-100, which helps ...
MyName's user avatar
  • 137
0 votes
1 answer
487 views

AttributeError: 'DataFrame' object has no attribute 'as_matrix' is the error [closed]

AttributeError: 'DataFrame' object has no attribute 'as_matrix' is the error
tiar loh's user avatar
1 vote
1 answer
1k views

How to add column name

I have a dataset in which some columns have header but the other ones don't have. Therefore, I want to add column name only to those who doesn't have column name. I know how to add column names using ...
user94378's user avatar
3 votes
1 answer
8k views

No module named "" error when loading the pickle file

I created a model and I saved it in a pickle file using the Algorithm SVR(Support Vector Regression) ...
HelloWorld's user avatar
4 votes
2 answers
16k views

Practical way to convert jupyter notebook to MS Word document?

What would be a practical way to convert a Jupyter Notebook to a Word document (.doc) ? I am asking this in a professional context, so I'd like to avoid manual solutions, do it in an efficient way (...
lcrmorin's user avatar
  • 2,405
0 votes
2 answers
9k views

DataFrame.dtypes error when training model using xgboost

I am getting a DataFrame.dtypes error while following the last steps of this tutorial. Here is my code: ...
Kasia's user avatar
  • 1
3 votes
2 answers
3k views

Add Cell Numbers to Jupyter?

Does anyone know a way to add cell numbers (not line numbers within cells)? I have been using nbextensions for a while but it does not seem to have the ability to label cell numbers.
Matan's user avatar
  • 81
6 votes
1 answer
7k views

How to properly store a list of pandas dataframes, so that I can import them in a new python script?

I'm trying to make a GUI in PyQt5 to present the results of my research. The results are around 800 pandas dataframes, stored in lists (so that I can call them individually according to the list index)...
Alex S.'s user avatar
  • 61
2 votes
2 answers
464 views

how to see decision tree when running in anaconda?

In Jupyter displaying the DT is done as follows: # Display in jupyter notebook from IPython.display import Image Image(filename = 'tree.png') How to see DT ...
user10296606's user avatar
  • 1,754
1 vote
1 answer
412 views

Site packages location not shared between Python and Jupyter Lab

I appreciate the fact that Jupyter runs in an isolated mode. I read several posts about it by now. What I don't understand is why the JUPYTER_PATH variable is ignored as well as appending manually (...
Andrea Moro's user avatar
1 vote
1 answer
636 views

Graph isn't an attribute in TensorFlow? Very basic question

Hi am am just starting to learn how to use TensorFlow and this is one of my first projects. I am simply trying to create a graph. This is my code: ...
GooseDe's user avatar
  • 13
2 votes
1 answer
132 views

Importing .ipnyb file from Kaggle into local Jupyter

Total beginner question here, please let me know if it would be more appropriate somewhere else. I just created my first iPython notebook in Kaggle and I downloaded the ipnyb file. Now I have ...
Brian Z's user avatar
  • 123
4 votes
1 answer
391 views

What is the difference between "Python interactive" and "Python 3" kernels

When creating a new notebook using the web interface, Jupyter gives me two options: 'Python Interactive' and 'Python 3' (see screenshot). However, I've been unable to find any indication on what the ...
Fritz's user avatar
  • 141
0 votes
1 answer
32 views

Why is the code provided in this book mostly commented out?

I am new to text mining and have been playing around with the code provided in the book Applied Text Analysis With Python. I came to a problem with this specific part: https://github.com/foxbook/atap/...
Chicago1988's user avatar
2 votes
1 answer
70 views

5 digit number mis-reads analysis

Nothing to do with number recognition in the classical 'hand-written' sense Disclaimer above to avoid this being counted as a repeat. I have a selection of 96 serial numbers, and a separate ...
BAC83's user avatar
  • 131
29 votes
10 answers
59k views

Collaborating on Jupyter Notebooks

I have prepared Jupyter Notebook with some findings and I shared it with other team members through GitHub to get their feedback in a written form. It used to work like this when working together on a ...
dzieciou's user avatar
  • 687
1 vote
2 answers
1k views

Attribute error when loading pickle file in python jupyter notebook

I have created a config file with the following code for an object detection task and saved in the local disk. ...
Malathi's user avatar
  • 135
0 votes
1 answer
686 views

Training object detection models from the scratch without using pre-trained models and weights

I have a data set of 25 images. I wish to run Faster RCNN or yolov3 object detection models on this images.I want to create my custom trained model and get weights after running say 10 epochs. Later I ...
Malathi's user avatar
  • 135
1 vote
0 answers
34 views

Integrate SageMaker notebook instances into development flow

I often get stuck by the calculation time when I work on a model locally. Even sampling quite heavily sometimes still let the running times very long. Ideally, these times must be of the order of the ...
louisD's user avatar
  • 11
1 vote
0 answers
351 views

Big dataset for multi-class classification can't be dasked and split, normal one can't be handled

I have a huge dataframe (550MB), the lending club one available here, and I have to predict the class of the grades. The dask dataframe is : ...
Revolucion for Monica's user avatar
1 vote
0 answers
697 views

visualize images inside the Dataframe [closed]

I use python 3.7.3 and I run this code on Jupyter Notebook . I have a column named 'image' in my Dataframe named df that contains Url of images I wanna visualize inside the df. I saw some answers ...
Ayoubayjx's user avatar
  • 111
4 votes
1 answer
370 views

How to display graph with MathJax in jupyter notebook?

I am trying to create a jupyter-notebook with a graphical depiction of a neural network. For starters, I am trying to display a simple network that evaluates a boolean NOT operator. I am using the <...
JoeNahmias's user avatar
0 votes
1 answer
3k views

Upload 'tsv' file to Google Colab / Jupyter Notebook

TSV(Tab separated Value) extension file can't be uploaded to google colab using pandas Used this to upload my file ...
Mohseen Mulla's user avatar
0 votes
1 answer
15k views

np.loadtxt function showing error, could not convert string to float: '"Date"'

This is my stock market csv data: ...
coding_ninza's user avatar
1 vote
1 answer
616 views

Jupyter Notebook - Change HTTP Headers

I am using jupyter notebook to host my machine learning codes and notebooks. Jupyter Notebook server is sending some HTTP headers like Server = TornadoServer/5.1.1 I want to remove this header. Also ...
Sandeep Bhutani's user avatar
0 votes
1 answer
2k views

Jupyter Notebook not importing pandas module

I am running Jupyter on a server on a virtual environment. I then tunnel my connection so I can access Jupyter on my browser. When I SSH into the server, I can use the Panda module in both Ipython ...
daniel blanco's user avatar