sanketsaurav / lore

Indentation is not a multiple of four FLK-E111
Style
Major
61 occurrences in this check
indentation is not a multiple of four
113
114    @classmethod
115    def last(cls, order_by=None, limit=1, **filters):
116       if order_by is None:117           order_by = inspect(cls).primary_key
118       if isinstance(order_by, list) or isinstance(order_by, tuple):
119           order_by = desc(*order_by)
indentation is not a multiple of four
114    @classmethod
115    def last(cls, order_by=None, limit=1, **filters):
116       if order_by is None:
117           order_by = inspect(cls).primary_key118       if isinstance(order_by, list) or isinstance(order_by, tuple):
119           order_by = desc(*order_by)
120       else:
indentation is not a multiple of four
115    def last(cls, order_by=None, limit=1, **filters):
116       if order_by is None:
117           order_by = inspect(cls).primary_key
118       if isinstance(order_by, list) or isinstance(order_by, tuple):119           order_by = desc(*order_by)
120       else:
121           order_by = desc(order_by)
indentation is not a multiple of four
116       if order_by is None:
117           order_by = inspect(cls).primary_key
118       if isinstance(order_by, list) or isinstance(order_by, tuple):
119           order_by = desc(*order_by)120       else:
121           order_by = desc(order_by)
122       return cls.first(order_by=order_by, limit=limit, **filters)
indentation is not a multiple of four
117           order_by = inspect(cls).primary_key
118       if isinstance(order_by, list) or isinstance(order_by, tuple):
119           order_by = desc(*order_by)
120       else:121           order_by = desc(order_by)
122       return cls.first(order_by=order_by, limit=limit, **filters)
123
indentation is not a multiple of four
118       if isinstance(order_by, list) or isinstance(order_by, tuple):
119           order_by = desc(*order_by)
120       else:
121           order_by = desc(order_by)122       return cls.first(order_by=order_by, limit=limit, **filters)
123
124    @classmethod
indentation is not a multiple of four
119           order_by = desc(*order_by)
120       else:
121           order_by = desc(order_by)
122       return cls.first(order_by=order_by, limit=limit, **filters)123
124    @classmethod
125    def first(cls, order_by=None, limit=1, **filters):
indentation is not a multiple of four
188
189  rmse = sqrt(sum([(m - n) ** 2 for m, n in zip(Y[:-fc], y[:-fc - 1])]) / len(Y[:-fc]))
190
191  return Y[-fc:], alpha, beta, gamma, rmse
indentation is not a multiple of four
186    s.append(gamma * (Y[i] / (a[i] + b[i])) + (1 - gamma) * s[i])
187    y.append((a[i + 1] + b[i + 1]) * s[i + 1])
188
189  rmse = sqrt(sum([(m - n) ** 2 for m, n in zip(Y[:-fc], y[:-fc - 1])]) / len(Y[:-fc]))190
191  return Y[-fc:], alpha, beta, gamma, rmse
indentation is not a multiple of four
179  for i in range(len(Y) + fc):
180
181    if i == len(Y):
182      Y.append((a[-1] + b[-1]) * s[-m])183
184    a.append(alpha * (Y[i] / s[i]) + (1 - alpha) * (a[i] + b[i]))
185    b.append(beta * (a[i + 1] - a[i]) + (1 - beta) * b[i])
indentation is not a multiple of four
176  y = [(a[0] + b[0]) * s[0]]
177  rmse = 0
178
179  for i in range(len(Y) + fc):180
181    if i == len(Y):
182      Y.append((a[-1] + b[-1]) * s[-m])
indentation is not a multiple of four
174  b = [(sum(Y[m:2 * m]) - sum(Y[0:m])) / m ** 2]
175  s = [Y[i] / a[0] for i in range(m)]
176  y = [(a[0] + b[0]) * s[0]]
177  rmse = 0178
179  for i in range(len(Y) + fc):
180
indentation is not a multiple of four
173  a = [sum(Y[0:m]) / float(m)]
174  b = [(sum(Y[m:2 * m]) - sum(Y[0:m])) / m ** 2]
175  s = [Y[i] / a[0] for i in range(m)]
176  y = [(a[0] + b[0]) * s[0]]177  rmse = 0
178
179  for i in range(len(Y) + fc):
indentation is not a multiple of four
172
173  a = [sum(Y[0:m]) / float(m)]
174  b = [(sum(Y[m:2 * m]) - sum(Y[0:m])) / m ** 2]
175  s = [Y[i] / a[0] for i in range(m)]176  y = [(a[0] + b[0]) * s[0]]
177  rmse = 0
178
indentation is not a multiple of four
171    alpha, beta, gamma = parameters[0]
172
173  a = [sum(Y[0:m]) / float(m)]
174  b = [(sum(Y[m:2 * m]) - sum(Y[0:m])) / m ** 2]175  s = [Y[i] / a[0] for i in range(m)]
176  y = [(a[0] + b[0]) * s[0]]
177  rmse = 0
indentation is not a multiple of four
170    parameters = fmin_l_bfgs_b(RMSE, x0 = initial_values, args = (Y, type, m), bounds = boundaries, approx_grad = True)
171    alpha, beta, gamma = parameters[0]
172
173  a = [sum(Y[0:m]) / float(m)]174  b = [(sum(Y[m:2 * m]) - sum(Y[0:m])) / m ** 2]
175  s = [Y[i] / a[0] for i in range(m)]
176  y = [(a[0] + b[0]) * s[0]]
indentation is not a multiple of four
159
160def multiplicative(x, m, fc, alpha = None, beta = None, gamma = None):
161
162  Y = x[:]163
164  if (alpha == None or beta == None or gamma == None):
165
indentation is not a multiple of four
155
156  rmse = sqrt(sum([(m - n) ** 2 for m, n in zip(Y[:-fc], y[:-fc - 1])]) / len(Y[:-fc]))
157
158  return Y[-fc:], alpha, beta, gamma, rmse159
160def multiplicative(x, m, fc, alpha = None, beta = None, gamma = None):
161
indentation is not a multiple of four
153    s.append(gamma * (Y[i] - a[i] - b[i]) + (1 - gamma) * s[i])
154    y.append(a[i + 1] + b[i + 1] + s[i + 1])
155
156  rmse = sqrt(sum([(m - n) ** 2 for m, n in zip(Y[:-fc], y[:-fc - 1])]) / len(Y[:-fc]))157
158  return Y[-fc:], alpha, beta, gamma, rmse
159
indentation is not a multiple of four
146  for i in range(len(Y) + fc):
147
148    if i == len(Y):
149      Y.append(a[-1] + b[-1] + s[-m])150
151    a.append(alpha * (Y[i] - s[i]) + (1 - alpha) * (a[i] + b[i]))
152    b.append(beta * (a[i + 1] - a[i]) + (1 - beta) * b[i])
indentation is not a multiple of four
143  y = [a[0] + b[0] + s[0]]
144  rmse = 0
145
146  for i in range(len(Y) + fc):147
148    if i == len(Y):
149      Y.append(a[-1] + b[-1] + s[-m])
indentation is not a multiple of four
141  b = [(sum(Y[m:2 * m]) - sum(Y[0:m])) / m ** 2]
142  s = [Y[i] - a[0] for i in range(m)]
143  y = [a[0] + b[0] + s[0]]
144  rmse = 0145
146  for i in range(len(Y) + fc):
147
indentation is not a multiple of four
140  a = [sum(Y[0:m]) / float(m)]
141  b = [(sum(Y[m:2 * m]) - sum(Y[0:m])) / m ** 2]
142  s = [Y[i] - a[0] for i in range(m)]
143  y = [a[0] + b[0] + s[0]]144  rmse = 0
145
146  for i in range(len(Y) + fc):
indentation is not a multiple of four
139
140  a = [sum(Y[0:m]) / float(m)]
141  b = [(sum(Y[m:2 * m]) - sum(Y[0:m])) / m ** 2]
142  s = [Y[i] - a[0] for i in range(m)]143  y = [a[0] + b[0] + s[0]]
144  rmse = 0
145
indentation is not a multiple of four
138    alpha, beta, gamma = parameters[0]
139
140  a = [sum(Y[0:m]) / float(m)]
141  b = [(sum(Y[m:2 * m]) - sum(Y[0:m])) / m ** 2]142  s = [Y[i] - a[0] for i in range(m)]
143  y = [a[0] + b[0] + s[0]]
144  rmse = 0