Mentions légales du service

Skip to content
Snippets Groups Projects
Verified Commit 7f3327b1 authored by ANDREY Paul's avatar ANDREY Paul
Browse files

Enhance typing of 'Model' and 'Vector' using 'typing.Generic'.

- Make `Vector` a `Generic[T]` to indicate that stored data arrays
  should have coherent types.
- Make `Model` a `Generic[VectorT]` to indicate that a given model
  class is associated with a unique vector class.
- In `Optimizer` and plug-ins ABCs, specify that inputs and outputs
  should be coherent using `Vector[T]` and `Model[Vector[T]]` type-
  hints.
- In concrete plug-in classes, leave the existing code as-is so as
  not to make it harder to read.
parent a748ae71
No related branches found
No related tags found
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment