Questions tagged [histogram]

A graph that shows the frequency of numerical data using rectangles

31 questions
7
votes
2 answers

Plotting different values in pandas histogram with different colors

I am working on a dataset. The dataset consists of 16 different features each feature having values belonging to the set (0, 1, 2). In order to check the distribution of values in each column, I used pandas.DataFrame.hist() method which gave me a…
enterML
  • 3,091
  • 9
  • 28
  • 38
6
votes
2 answers

Histogram plot with plt.hist()

I am a Python-Newbie and want to plot a list of values between -0.2 and 0.2. The list looks like this [...-0.01501152092971969, -0.01501152092971969, -0.01501152092971969, -0.01501152092971969, -0.01501152092971969, -0.01501152092971969, …
Thomas
  • 61
  • 1
  • 1
  • 2
3
votes
1 answer

Re-sampling of a Histograms Bins

I would like to be able to resample a histograms bins without having access tot he raw data. And just to be clear, by resample, I mean to change the number of bins and still provide a good estimate of the original probabilities of those bins. I can…
mazecreator
  • 133
  • 5
3
votes
1 answer

Histograms in Machine Learning

I have a large data set with over 100k samples and I want to predict a continuous target feature from 4 other continuous features using Scikit Learn. For this project, I would like to visualize and analyze the data using both 1 dimensional and two…
2
votes
1 answer

Why do histogram bars vanish when we keep the bins value high in matplotlib?

Also, the histogram bar widths are different on certain values of bin. How to keep the bar widths uniform? I have tried using the rwidth but that dos not solve my problem. Data: test age 17 - Alpha OH PROGESTERONE - HORMONE ASSAYS 23 17 - Alpha…
2
votes
0 answers

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 of every method,I tried this code: % Matlab…
2
votes
0 answers

Discretize interval into fixed number of bins while minimizing error

Background I have been working on an optimization problem related to the following function: $$ y = f(x) = c_{1}(1-e^{-c_{2}(x-x_{0})})^{2}$$ where $c_{1}$, $c_{2}$ and $x_{0}$ are constants. Assume that we have an interval $[x_{a}, x_{b}]$ and then…
1
vote
2 answers

Normality score

Having the following distributions (actual and predicted), Hist 1 to 3 (left to right). I would like to get a score ranging from 0-1 of how close the actual distribution is to be normal. I've found a couple of statistical normality…
1
vote
0 answers

How to evaluate KDE against histogram?

I am currently testing some approaches for density estimation, and I think the basic approach of histograms may not be the best option to me and KDE is certainly a good alternative to go. While ago I found a very interesting tutorial by Jake…
1
vote
0 answers

Getting different visualization results for jupiter and datacamp existing code shell. How to solve this?

The left one image is in jupiter notebook and the right one is from datacamp exercises. Can anyone please let me know why I am getting different results in Jupiter? Used hacker statistics to calculate the chances of winning a bet. Used random number…
S.Sharleen
  • 11
  • 2
1
vote
0 answers

Triplet optimization producing a weird diagonal line?

I'm pretty sure this is the right forum for this, or let me know otherwise, I'll happily move this to a better place. I have a strange problem. I've written an algorithm designed to take three files of UNIX timestamps, and produce a list of triplets…
10GeV
  • 121
  • 2
1
vote
0 answers

What is the difference between HLC (Histogram of local features) , CSS ( color self-similarity) ans MDST (Max DisSimilarity of Different Templates)

I'm new to computer vision and have been researching for Master thesis purposes in Detection algorithms and the techniques used in each. As I arrived to the point where alot of papers showed the importance of color in object recognition, i got got…
1
vote
1 answer

Generating the right target for an LSTM model

Trying to explain my question on a simplified data set. Having the following dataset: day f1 f2 0 0 10 1000 1 1 45 2000 2 2 120 3400 3 3 90 5000 I'm trying two approaches to generates a score based on the data…
1
vote
0 answers

Histogram with financial (decimal) amounts vs. normal numeric

Take the following historgram data: This is an item of "bin size" 1 from 0 onwards. However, I do not think this looks appropriate, as every time I have seen a histogram (or someone has requested it), it has unambiguous values, such as: $ 0.00 -…
David542
  • 111
  • 1
1
vote
1 answer

Should weight distribution change more when fine-tuning transformers-based classifier?

I'm using pre-trained DistilBERT model from Huggingface with custom classification head, which is almost the same as in the reference implementation: class PretrainedTransformer(nn.Module): def __init__( self, target_classes): …
1
2 3