-
```
P = piecewise([((0,2),x),((2,6),2)])
print P
plot(P)
```
Before this would have plotted the whole thing, now it defaults to the usual plotting only from -1 to 1 (which of course gives an error)…
-
We can define
```python
def truncate(x, l):
x = (x - l) * (x >= l)
return x
```
And then simply do
```python
formula = "response ~ x + truncate(x, 10) + truncate(x, 20)"
```
-
The curve is partitioned into intervals and a separate polynomial is fit to each interval. The constraints of the optimization are twofold:
1. Two adjacent polynomial regressions should have the s…
-
I'm trying to build an ensemble learner using PiecewiseTreeRegressors. In doing so, the parameter "sample_weight" is utilized during fitting of the estimator. This throws an error here:
https://githu…
-
I was going to use PiecewiseRegressor with ARDRegression estimator, and in general an estimator build with a pipeline or Gridsearch model but I am getting this error:
`Traceback (most recent call las…
-
Does this code support **multivariate** piecewise linear regression?
Or is there any plan to support this?
-
It seems that there is no conditional prediction for the survival function when using PiecewiseExponentialRegressionFitter, is there any workaround using the regular prediction, ie conditional_after…
-
This is a meta-ticket about piecewise functions.
Fractional part, modulo, ...:
- #9935: Make a symbolic mod function
- #21232: Fractional part function {x}
- #21274: frac(x) immediate simplificatio…
-
I found this `simplify under piecewise` test regression on the `kronecker_in_simplify` branch:
```
$ maple -q update-archive.mpl
$ maple -q NewSLOTests.mpl
...
Error, (in KB:-kb_Partition) assert…
-
Request for project inclusion in scikit-learn-contrib
* Project name: Splinator
* Project description: Probabilistic Calibration with Regression Splines
* Authors: Affirm
* Current repository: h…