Questions tagged [plotting]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
2
votes
0answers
13 views

Plotting Gradient Descent in 3d - Contour Plots

I have generated 3 parameters along with the cost function. I have the $\theta$ lists and the cost list of 100 values from the 100 iterations. I would like to plot the last 2 parameters against cost ...
-1
votes
0answers
11 views

Plotly - how to smoothen out boundaries in contour plot?

I'd like to smoothen out the boundaries in a contour plot of Plotly, between values that have a numerical value for z and those that have None. Do you know a way to do that? Thank you in advance!
2
votes
0answers
13 views

Visualizing the difference of a set of strings

I have a distance metric on a collection of strings on the order of tens of thousands. What would be an intuitive way to summarize how 'different' these strings are or when they overlap? My goal is ...
0
votes
0answers
19 views

Visualizing categorical data in scatter plot with Orange (version > 3.18)

Why in Orange versions after 3.18 is not possible to visualize categorical data in Scatter Plot widget?
0
votes
0answers
27 views

Data Visualization of Feature Distribution Plot

I have been trying my best to plot this type of feature distribution plot using Python. I looked for what they are called to replicate the plot, but couldn't find the name of it? The Reference of ...
1
vote
2answers
33 views

Plots of data using DBSCAN algorithm not making sense

I am using clustering for my data. Since the DBSCAN algorithm will also tell me an estimate of clusters that I can use, I have used DBSCAN. I have tried for the ...
2
votes
1answer
86 views

How to interpret Shapley value plot for a model?

I was trying to use Shapley value approach for understanding the model predictions. I am trying this on a Xgboost model. My plot ...
0
votes
1answer
22 views

Why am I getting misaligned values while plotting heatmaps using seaborn?

While plotting heatmaps using seaborn, the numbers are getting printed on the boundary of the heatmap (Please see the image attached). I have already plotted heatmaps many times using the same code. ...
3
votes
2answers
56 views

How best to show the best model over multiple labels?

I have 4 models I trained and I want to display their prediction success over 45 different labels I tested them on. I get a very messy plot when I naively try to place them one on top of the other. ...
0
votes
0answers
32 views

Trying to manually code a spline regression

I've been trying to get this code to work for a spline regression without using built in libraries in R. My code below is resulting in the error Error in eval(predvars, data, env) : object 'V1' not ...
0
votes
0answers
8 views

`fourfoldplot` not displaying size and colors correctly with numbers in column labels

If I use a sample table, like so: ctable <- as.table(matrix(c(42, 6, 8, 28), nrow = 2, byrow = TRUE)) and plot with ...
1
vote
1answer
150 views

How to plot time series data from SQLite database

I am trying to plot time series data by accessing the SQLite database. I successfully connect the database by coding the below script,however, i couldn't figure out how to plot the time series data ...
0
votes
0answers
223 views

How to interpret pairplot?

There are 2 sns.pairplot, tell me how to interpret them. As I understand it, sns.pairplot allows us to look at the diagonal distribution of these signs, and on the non-diagonal linear relationship ...
2
votes
0answers
21 views

Using a KMeans to classify URLs: validate the number of cluster and visualise

I'm relatively new to the NLP and DataScience, so apologies for omission or things like this. I've been trying to use the KMeans to classify a list of 1000 of unique URLs containing several keywords ...
1
vote
1answer
257 views

How to avoid overfitting in Reinforcement Learning

I have implemented a RL model based on Deep Q-Learning for learning how to play a 2D game, like the ones in the OpenAI Gym. For testing the model, unlike most people, I have chosen to evaluate its ...
0
votes
0answers
27 views

Plotting an loss/cost function wrt parameters

What would be the most sensible way to plot, for example the cross-entropy loss function (or the quadratic error function) for a binary classification algorithm (e.g. in this case logistic regression) ...
1
vote
0answers
20 views

Interactive heatmap slice as separate plot for browser

I want to create an interactive online version of a static plot I generated with gnuplot5. I have limited experience with generating dynamic plots for webpages and need a rough direction where to go ...
1
vote
2answers
81 views

Pandas, make the bars of a bar graph have equal widths

What do I need to change so that ax1 uses the same width for bars as ax2? ...
1
vote
1answer
50 views

How interpret keras training loss without compare with validation loss?

I have several implementation of the same neural network, but each one with different starting parameter. This is one of my plot comparing the training loss of the base experiment with the training ...
0
votes
3answers
55 views

Why does changing the cluster number change the plot in Kmeans?

This might be a dumb questions but I can't find the answer to it. I don't have the perfect mathematical understanding of kmeans, so apologies if it is. I'm just wondering why I see a different plot ...
0
votes
0answers
13 views

Plotting the value change in regression CNN

I have trained my CNN on thousands of images with different hyperparameters, now I want to show the difference on the output for each individual image. I mean ...
3
votes
1answer
349 views

Plotting Weibull distribution on Wind Speed

I have a 720 hourly set of wind speed and wind direction data and I want to fit the Weibull Distribution on it. After searching for some time, I wrote the following code in Python to get my ...
0
votes
1answer
39 views

Plot misclassfied values in matplotlib

I have two lists. One is target and another is predicted values in a binary classification. The target is always zero. And I have to plot the results of the prediction against target in such a way, ...
0
votes
1answer
19 views

Is my iPython Installation Valid?

I just want to know if my ipython is properly installed. I have both Python and Anaconda installed on my Windows. I entered the "pip3 install ipython" command on the Command Prompt and it downloaded ...
0
votes
0answers
18 views

Using Matplotlib [duplicate]

I am new to data science. I use Anaconda on windows 7. I plotted a sine curve by doing the following on iPython: ...
1
vote
1answer
33 views

Naming the Axes of my Graph on iPython Using Matplotlib.pyplot

I am new to data science. I use Anaconda on windows 7. I plotted a sine curve by doing the following on iPython: ...
1
vote
0answers
105 views

How to visualize multivariate regression results by plotting plane of best fit?

I am implementing multivariate linear regression using numpy, pandas and matplotlib. I am ...
2
votes
1answer
43 views

How can I get variable values from a plot?

I would like to know if there is any way in python to automatically determine the values of point a and b marked in the graph below. Said a different way, finding the values when my plot shows a ...
0
votes
0answers
58 views

Running into strange errors when using glmnet and generating graphs

I developed a very simple Ridge Regression with glmnet, the R package. When I use the plot.glmnet() function I encounter strange errors: ...
0
votes
1answer
39 views

Multiple regression (using machine learning - how plot data)

I wonder how I can use machine learning to plot multiple linear regression in a figure. I have one independent variable (prices of apartments) and five independent (floor, builtyear, roomnumber, ...
2
votes
0answers
40 views

How to force histogram plots to have same axes?

I am comparing my trained model with other benchmark models with the error histogram but the axis of histogram is different for each method as shown in figure.For instance to plot the error histogram ...
1
vote
0answers
206 views

Plotting ROC curve in cross validation using Matlab perfcurve

I have the following code for a binary classifying using SVM, and 10 cross-validation, ...
5
votes
2answers
383 views

Data Visualization with multiple dimension, and linear separability

I have a dataset of two classes with several features, how can I visualise such data using Matlab to decide if it is linear separable or not?
2
votes
1answer
49 views

Name of this type of cross variable interaction Plot

In recent papers of Social Network Analysis , I have been observing this particular type of graph used increasingly. I looked for what they are called to replicate the graph, but couldn't find the ...
1
vote
0answers
103 views

How to create a timeline graph ( Date / time series) in MATLAB?

The data file is attached https://ufile.io/ttwi8.How may I create a timeline graph where my y-axis is the number of cases(Demand and prediction as sjown in attached graph) and my x axis is increasing ...
1
vote
0answers
21 views

I need help interpreting this PCA plot

I have a dataset of 116 observations and 10 numeric variables. The dataset contains information about healthy patients and patients attained with breast cancer. I did a PCA plot showing the cluster of ...
1
vote
1answer
27 views

Curvature - Linear Assumption

They asked if the linear assumption is correct, but I just see a graph and based on the data I was taught that a curvature is nonlinear so nonlinear means that a graph is incorrect? What is the ...
2
votes
2answers
120 views

Residual plots: why do we want to know the error?

The residual plot represents the error between the actual value. Y-axis: residuals X-axis: the predictor variable or fitted values. Why do we want to know the error, what benefits us in getting the ...
1
vote
1answer
62 views

plot the histogram of purchases

i have a dataframe with 34154695 obs. in a dataset a Class variable with value 0 indicate "not purchased" and 1 indicate "purchase". ...
1
vote
1answer
923 views

Confusion matrix plot with python

I'm for a function that can plot the following plot using python:
1
vote
1answer
110 views

How to make a Power Spectral Density Plot in R

I have a time series point process representing neuron spikes. I have computed and plotted autocovariance using acf but now I need to plot the Power Spectral ...
0
votes
1answer
1k views

How to interpret partial dependence interaction plot for binary classification?

The plot below is an example from pdpbox library https://github.com/SauceCat/PDPbox/blob/master/tutorials/pdpbox_binary_classification.ipynb. The what does 0.900 color saturation to the right mean ...
0
votes
1answer
4k views

Gaussian distribution in python without using libraries

I am implementing Gaussian distribution of a variable, but it gives multiple bell shapes. It should be a single bell shape. Below is my code and plot. ...
1
vote
1answer
49 views

How do I assign a title to each of the histograms I have posted at the same time? [closed]

fig, axes = plt.subplots(1,7, sharey=True) df2.loc[df2.country == 'BR','date_created'].hist(xrot=90,bins=30,ax=axes[0],figsize=(20,4)); df2.loc[df2.country == 'CH','date_created'].hist(xrot=90,bins=...
2
votes
1answer
6k views

Plotting in PySpark?

I have been searching for methods to plot in PySpark. I couldn't find any resource on plotting data residing in DataFrame in PySpark. The only methods which are listed are: through method ...
-1
votes
2answers
94 views

How to plot High Dimensional supervised K-means on a 2D plot chart

I'm Having a ML problem where my data set contains 80 features labelled into 3 groups (0, 1, -1). I want to plot the data on a 2D surface to see how "close" (similar) data with ...
1
vote
3answers
17k views

Scatter plot for binary class dataset with two features in python

I have my dataset that has multiple features and based on that the dependent variable is defined to be 0 or 1. I want to get a scatter plot such that all my positive examples are marked with 'o' and ...
1
vote
1answer
67 views

How to interpret PR and ROC Curve for an unbalanced test set

I have trained a neural network on a dataset, the test set is very unbalanced, ratio between positive examples and negatives is 1:25000. All positive examples are correctly predicted, instead ...
1
vote
2answers
223 views

How to best visualize data when outliers lead to lack of contrasting colors for the rest of the plot?

I have plotted the following map of Philippines according to the population in its regions, using matplotlib.pyplot in Python 3: As can be seen, there's one ...
0
votes
2answers
2k views

How to plot using facet_wrap, over multiple pages as a .pdf files in r cran

I am using ggplot, to compare 114 unique studies for a particular variable I'm interested in. This is what I have used. ggplot(steps, aes(x=factor(edu))) + geom_bar(aes(y = (..count..), group = ...