(price, steady, cost, model)
| 86 | |
| 87 | |
| 88 | def gain(price, steady, cost, model): |
| 89 | temp = np.array(steady) |
| 90 | temp = np.append(temp, price) |
| 91 | temp = np.reshape(temp, (1, len(temp))) |
| 92 | quantity = np.round_(model.predict(temp)) |
| 93 | result = (price - cost) * quantity |
| 94 | return float(np.round_(result, 2)) |
| 95 | |
| 96 | |
| 97 | def optimize_prices(): |
nothing calls this directly
no outgoing calls
no test coverage detected