Release Notes
`carefree-learn 0.1.9` improved overall performances and accessibilities.
`ModelConfig`
`carefree-learn` now introduces `ModelConfig` to manage configurations more easily.
Modify `extractor_config`, `head_config`, etc
<table align=center>
<tr>
<td align=center><b>v0.1.8</b></td>
<td align=center><b>v0.1.9</b></td>
</tr>
<tr>
<td>
<pre lang="python">
head_config = {...}
cflearn.make(
model_config={
"pipe_configs": {
"fcnn": {"head": head_config},
},
},
)
</pre>
</td>
<td>
<pre lang="python">
head_config = {...}
cflearn.ModelConfig("fcnn").switch().head_config = head_config
</pre>
</td>
</tr>
</table>
Switch to a preset config
<table align=center>
<tr>
<td align=center><b>v0.1.8</b></td>
<td align=center><b>v0.1.9</b></td>
</tr>
<tr>
<td>
<pre lang="python">
Not accessible, must register a new model
with the corresponding config:
cflearn.register_model(
"pruned_fcnn",
pipes=[
cflearn.PipeInfo(
"fcnn",
head_config="pruned",
)
],
)
cflearn.make("pruned_fcnn")
</pre>
</td>
<td>
<pre lang="python">
cflearn.ModelConfig("fcnn").switch().replace(head_config="pruned")
cflearn.make("fcnn")
</pre>
</td>
</tr>
</table>
Misc
+ Enhanced `LossBase` (66).
+ Introduced callbacks to `Trainer` (65).
+ Enhanced `Auto` and support specifying `extra_config` with json file path (752f419).
---
+ Fixed other bugs.
+ Optimized `Transformer` (adce2f9).
+ Optimized performance of `TrainMonitor` (91dfc43).
+ Optimized performance of `Auto` (47caa48, 9dfa204, 274b28d and 61, 63, 64).