Results for precision

November 25th, 2023

Precision and recall for which class is calculated in GridSearchCV?

I'm running GridSearchCV on XGBoost model to tune some parameters. My target variable is binary. When I use, 'recall' or 'precision' as scoring metric...

November 13th, 2023

tick label appears with different precision due to IEEE 754 float precision

For example: import matplotlib.pyplot as plt import numpy as np x = np.arange(0.0,1.2,0.2) y = np.arange(0.0,1.2,0.2) labels = np.arange(0.0,1.2,0.2...

October 24th, 2023

Increase the "precision" of a heatmap

Using seaborn i am generating heatmaps for various series of a DataFrame. The main code that I use is the following: def plot_heatmap(data, cmap, x_la...

October 31st, 2023

Precision different while calling from Raku nativecall

I was looking to write linspace function of NumPy. As the loops are faster in compiled code, tried writing in C and calling from Raku. // C code #inc...

October 16th, 2023

PHP float precision and float-to-string/integer conversion

Observe the following case php -r 'echo 4.60*100, " ", (int)(4.60*100), PHP_EOL;' Surprisingly (to me) it prints this: 460 459 I understand that decim...

September 30th, 2023

Element-wise comparison with certain precision

I am looking for testing output of my function (which returns array) with the expected output array. Example: use Test; sub myoutput($n) { (1..$n)...

September 29th, 2023

Integer value not having precision with setprecision()

I have a program here to approximate the value of pi using a series, and need it to output pi to a certain degree of accuracy, I have chosen 16 digits...

October 23rd, 2023

How to handle rounding errors in solidity code? Avoid precision loss or keep track of precision losses?

How to handle rounding errors in solidity code? Avoid precision loss or keep track of precision losses. Example, if i have some calculated(includes a ...

September 26th, 2023

C++ chrono convert string with microseconds precision to chrono object

I'm parsing SVN logs and they contain date/time with this format 2023-09-23T23:08:30.383815Z. I need to convert this to a time object (supposed std::c...

September 23rd, 2023

pandas dataframe style format not printing specified precision

I am trying to format the dataframe using https://pandas.pydata.org/docs/reference/api/pandas.io.formats.style.Styler.format.html. But, I am not getti...

September 9th, 2023

EF Core: set precision for all decimal properties of certain entity class

I have a class which has several float properties class BodyParameters { public float Weight { get; set; } public float Height { get; set; } ...

September 7th, 2023

Is it possible to implement error-free floating-point arithmetic based on ARM pseudocode using finite precision floating-point arithmetic?

Background: usually floating-point arithmetic is implemented using integer arithmetic (for example, Berkeley SoftFloat). Per ARM pseudocode [1] floati...

September 8th, 2023

Is it possible to implement IEEE 754 conforming floating-point arithmetic based on ARM pseudocode using finite precision floating-point arithmetic?

Background: usually floating-point arithmetic is implemented using integer arithmetic (for example, Berkeley SoftFloat). Per ARM pseudocode [1] floati...

September 20th, 2023

How to use .formatted(.percent) with specified precision? (FormatStyle protocol)

I want to convert a progress's Double value ranging from 0 to 1 into a nicely formatted String with a selected amount of fraction digits, e.g. 0.78912...

October 30th, 2023

Clickhouse active record datetime precision issue

I have gems clickhouse 0.1.10, clickhouse-activerecord 0.5.14, pg 1.4.6 and rails 7.0.4.3. ClickHouse server version 23.4.2.11, postgresql server 15.3...

October 17th, 2023

EF Core 6 Decimal precision warning

After upgrading to EF Core 6, I have this annoying warning here when adding a migration: No store type was specified for the decimal property '{proper...

November 13th, 2023

How to find the value of precision and recall using the Confusion Matrix

I'm trying to find the precision and recall for the confusion matrix given below, but an error occurred. How would I accomplish it using Numpy and Skl...

November 11th, 2023

how to find confusion matrix and the accuracy rate from precision and recall values?

I get an average of precision 82.59 and recall 69.84 using bboxPrecisionRecall for segmenting Arabic words algorithm. I need a help as to calculate TN...

October 19th, 2023

Recommendation System - Recall@K and Precision@K

I am building a recommendation system for my company and have a question about the formula to calculate the precision@K and recall@K which I couldn't ...

September 1st, 2023

ERROR: function round(double precision, integer) does not exist

I am in the middle of migrating some queries which have been running for ages with MySQL database which is now in Postgres having the same structure. ...

November 11th, 2023

tick labels have different precision

When defining tick labels I get an abnormally high level of precision. For example: import pylab as pl fig = pl.figure(figsize=(3.25, 2.5)) ax0 = f...

September 8th, 2023

ADODB unable to store DATETIME value with sub-second precision

According to the Microsoft documentation for the DATETIME column type, values of that type can store "accuracy rounded to increments of .000, .003, or...

November 3rd, 2023

Higher precision logging module time format?

I am using the logging module from Python and I need to get information about the starting and ending time of different functions calls. For this, I a...

November 11th, 2023

Different precision on matplotlib axis

My teacher said that in a graph I must label the axis like 0, 0.25, 0.5 not 0.00,0.25,0.50,.... I know how to label it like 0.00,0.25,0.50 (plt.ytick...

November 21st, 2023

SQL Server SUM and UNION losing decimal precision

This is a question related to both Entity Framework and SQL Server (2016). I've noticed some strange behaviour in SQL server when summing a decimal c...

- 25881
How do I undo the most recent local commits in Git?

- 11618
How can I remove a specific item from an array in JavaScript?

- 20343
How do I delete a Git branch locally and remotely?

- 7387
How can I find all files containing a specific text (string) on Linux?

- 7330
How to find all files containing specific text (string) on Linux?

- 7611
How do I revert a Git repository to a previous commit?

- 2671
How do I create an HTML button that acts like a link?

- 8481
How do I check out a remote Git branch?