Stas Bekman
7e1cb00c37
[trainer] improve code readability ( #8903 )
...
* [trainer] improve code
This PR:
- removes redundant code
```
self.model = model if model is not None else None
```
and
```
self.model = model
```
are the same.
* separate attribute assignment from code logic - which simplifies things further.
* whitespace
2020-12-02 09:07:42 -08:00
..
2020-11-16 21:43:42 -05:00
2020-11-17 10:35:38 -05:00
2020-11-29 11:27:00 -05:00
2020-12-02 10:08:32 -05:00
2020-12-02 10:08:32 -05:00
2020-12-02 10:08:32 -05:00
2020-10-30 15:09:10 -04:00
2020-10-30 15:09:10 -04:00
2020-11-27 10:52:58 -05:00
2020-10-29 10:33:33 -04:00
2020-11-11 12:28:09 -05:00
2020-11-29 16:57:43 +01:00
2020-10-29 10:33:33 -04:00
2020-09-10 16:40:51 +02:00
2020-11-24 13:22:25 -05:00
2020-11-24 13:22:25 -05:00
2020-11-23 13:56:45 -05:00
2020-11-03 16:04:22 +01:00
2020-11-20 19:59:06 +01:00
2020-11-25 16:54:59 -05:00
2020-11-25 16:54:59 -05:00
2020-11-10 07:11:02 -05:00
2020-10-29 10:56:25 -04:00
2020-11-30 11:12:15 -05:00
2020-11-17 08:58:45 -05:00
2020-11-10 07:11:02 -05:00
2020-11-06 19:34:48 +01:00
2020-11-11 15:41:39 +01:00
2020-11-23 12:33:13 -08:00
2020-11-24 13:55:00 -05:00
2020-11-27 10:52:58 -05:00
2020-11-21 22:58:10 -05:00
2020-10-26 18:26:02 -04:00
2020-11-30 14:05:08 -05:00
2020-11-19 11:56:42 -05:00
2020-12-02 10:18:28 -05:00
2020-12-02 10:18:28 -05:00
2020-11-17 15:11:29 -05:00
2020-11-23 17:25:35 -05:00
2020-11-05 15:13:51 -05:00
2020-11-30 11:12:15 -05:00
2020-10-26 18:26:02 -04:00
2020-12-02 09:07:42 -08:00
2020-11-30 11:12:15 -05:00
2020-12-01 13:46:09 -05:00