polynomials Questions
3
Solved
I have been trying to use the scikit-learn library to solve this problem. Roughly:
from sklearn.preprocessing import PolynomialFeatures
from sklearn.linear_model import LinearRegression
# Make or ...
Giraffe asked 10/10 at 17:32
3
Solved
I haven't been able to find an answer to this question, largely because googling anything with a standalone letter (like "I") causes issues.
What does the "I" do in a model like this?
data(rock)...
Titicaca asked 12/6, 2014 at 19:26
3
I tried to find out how to calculate the error detection capabilities of arbitrary CRC polynomials.
I know that there are various error detection capabilities that may (or may not) apply to an arb...
Keene asked 19/8, 2016 at 22:10
3
Solved
I have problems by solving a polynomial function with sympy. The following example shows a case which gives an error message that I cannot manage. If the polynomial gets simpler the solver works pr...
Nunhood asked 29/3, 2016 at 14:11
1
Solved
I want to create a polynomial ring which has float Coefficients like this. I can create with integers but, Floats does not work.
using Oscar
S, (a,b,c,d) = PolynomialRing(QQ,["a","b...
Ss asked 18/1, 2022 at 22:23
5
Solved
Using NumPy's polyfit (or something similar) is there an easy way to get a solution where one or more of the coefficients are constrained to a specific value?
For example, we could find the ordina...
Nopar asked 26/1, 2018 at 21:35
2
Solved
I do not understand why polynomial.Polynomial.fit() gives coefficients very different from the expected coefficients :
import numpy as np
x = np.linspace(0, 10, 50)
y = x**2 + 5 * x + 10
print(np...
Limpid asked 3/5, 2021 at 15:28
2
Solved
Using Python 3.10.0 and NumPy 1.21.4.
I'm trying to understand why Polynomial.fit() calculates wildly different coefficient values from polyfit().
In the following code:
import numpy as np
def mai...
Footgear asked 9/12, 2021 at 21:39
1
I am working with very large polynomials in sympy and I need to have them in expanded form to find certain terms and coefficients. However, the expansion of these polynomials takes a long time. Is ...
Mert asked 19/4, 2019 at 2:12
3
Solved
I have fit a second order polynomial to a number of x/y points in the following way:
poly = np.polyfit(x, y, 2)
How can I invert this function in python, to get the two x-values corresponding to...
Comport asked 11/2, 2017 at 17:42
1
Solved
I'm trying to get the coefficients of a numpy.polynomial.polynomial.Polynomial obtained via
the fit method:
import numpy.polynomial as poly
x = [1, 2, 3, 4, 5]
y = [16, 42.25, 81, 132.25, 196]
c ...
Gatefold asked 27/5, 2021 at 18:36
1
import sympy as S
F = S.FiniteField(101)
When I call f = S.poly(y ** 2 - x ** 3 - x - 1,F) I get the following error:
'FiniteField' object has no attribute 'is_commutative'
But finite field...
Presence asked 1/5, 2015 at 2:15
5
Solved
Need help in sklearn's Polynomial Features. It works quite well with one feature but whenever I add multiple features, it also outputs some values in the array besides the values raised to the powe...
Eyrir asked 18/8, 2018 at 7:19
2
Solved
For a quantification project, I am in need of colour corrected images which produce the same result over and over again irrespective of lighting conditions.
Every image includes a X-Rite color-chec...
Embrocation asked 20/7, 2020 at 10:25
1
Solved
What is the difference between
https://docs.scipy.org/doc/numpy/reference/generated/numpy.polyfit.html
and
https://docs.scipy.org/doc/numpy/reference/generated/numpy.polynomial.polynomial.poly...
Waldner asked 31/10, 2019 at 20:52
3
Solved
I'm new to Machine Learning and currently got stuck with this.
First I use linear regression to fit the training set but get very large RMSE. Then I tried using polynomial regression to reduce the ...
Pyretotherapy asked 22/11, 2017 at 19:2
2
Solved
I have a python code that calculates z values dependent on x and y values. Overall, I have 7 x-values and 7 y-values as well as 49 z-values that are arranged in a grid (x and y correspond each to o...
Macdonald asked 6/12, 2016 at 11:17
1
Solved
I'v already implemented fixed-point log2 function using lookup table and low-order polynomial approximation but not quite happy with accuracy across the entire 32-bit fixed-point range [-1,+1). The...
Scrummage asked 13/2, 2019 at 1:24
1
Solved
I'm relatively new to gganimate and I'm trying to create a simple polynomial time-series graph on R studio.
x <- 1:100
f <- function (x){
return(-(x)^2)
}
df <- data.frame(x, y= -(x)^...
Wildebeest asked 22/11, 2018 at 0:1
0
I'm trying to implement the idea I have suggested here, for Cauchy product of multivariate finite power series (i.e. polynomials) represented as NumPy ndarrays. numpy.convolve does the job for 1D a...
Paletot asked 10/8, 2018 at 21:31
1
Solved
I would like to try to implement Yun's algorithm for square-free factorization of polynomials. From Wikipedia (f is the polynomial):
a0 = gcd(f, f'); b1 = f/a0; c1 = f'/a0; d1 = c1 - b1'; i = 1
re...
Greenberg asked 9/7, 2018 at 17:18
1
As per the description given below: 'if an input sample is two dimensional and of the form [a, b], the degree-2 polynomial features are [1, a, b, a^2, ab, b^2].'
sklearn.preprocessing.PolynomialFe...
Cytherea asked 10/2, 2018 at 2:14
2
Solved
I'm trying to understand how to replicate the poly() function in R using scikit-learn (or other module).
For example, let's say I have a vector in R:
a <- c(1:10)
And I want to generate 3rd ...
Iowa asked 24/12, 2016 at 21:58
3
Solved
I am currently dealing with functions of more than one variable and need to collect like terms in an attempt to simplify an expression.
Say the expression is written as follows:
x = sympy.Symbol(...
Grandfather asked 26/2, 2016 at 5:49
2
I have an array of data, with dimensions (N,3) for some integer N, that specifies the trajectory of a particle in 3D space, i.e. each row entry is the (x,y,z) coordinates of the particle. This traj...
Teodorateodorico asked 27/7, 2017 at 12:30
1 Next >
© 2022 - 2024 — McMap. All rights reserved.