Skip to content

Commit 2f9b292

Browse files
committed
Missed a few other places where polytype/scaler were.
1 parent 09078cc commit 2f9b292

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

patsy/polynomials.py

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ def memorize_finish(self):
7575
raw_poly = self.vander(scores, n)
7676
self.alpha, self.norm, self.beta = self.gen_qr(raw_poly, n)
7777

78-
def transform(self, x, degree=3, polytype='poly', raw=False, scaler=None):
78+
def transform(self, x, degree=3, raw=False):
7979
if have_pandas:
8080
if isinstance(x, (pandas.Series, pandas.DataFrame)):
8181
to_pandas = True
@@ -87,14 +87,11 @@ def transform(self, x, degree=3, polytype='poly', raw=False, scaler=None):
8787
x = np.array(x, ndmin=1).flatten()
8888

8989
n = self.degree
90-
p = self.vander(x, n, self.polytype)
90+
p = self.vander(x, n)
9191

92-
if self.scaler == 'qr':
92+
if not self.raw:
9393
p = self.apply_qr(p, n, self.alpha, self.norm, self.beta)
9494

95-
if self.scaler == 'standardize':
96-
p = self.apply_standardize(p, self.mean, self.var)
97-
9895
p = p[:, 1:]
9996
if to_pandas:
10097
p = pandas.DataFrame(p)

0 commit comments

Comments
 (0)