(self)
| 282 | for i in xrange(self.l)] |
| 283 | |
| 284 | def get_SV(self): |
| 285 | result = [] |
| 286 | for sparse_sv in self.SV[:self.l]: |
| 287 | row = dict() |
| 288 | |
| 289 | i = 0 |
| 290 | while True: |
| 291 | row[sparse_sv[i].index] = sparse_sv[i].value |
| 292 | if sparse_sv[i].index == -1: |
| 293 | break |
| 294 | i += 1 |
| 295 | |
| 296 | result.append(row) |
| 297 | return result |
| 298 | |
| 299 | def toPyModel(model_ptr): |
| 300 | """ |