Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Scientific Plots
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Distributed parameter pneumatics
Scientific Plots
Commits
2a0e95df
Commit
2a0e95df
authored
11 months ago
by
Felix Fischer
Browse files
Options
Downloads
Patches
Plain Diff
fixed typing issues
parent
23d7ee2a
No related branches found
No related tags found
1 merge request
!55
Preview
Pipeline
#1377683
passed
11 months ago
Stage: test
Stage: static analysis
Stage: testing
Stage: build
Changes
2
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/skimage-stubs/filters.pyi
+1
-1
1 addition, 1 deletion
src/skimage-stubs/filters.pyi
src/sklearn-stubs/ensemble.pyi
+7
-8
7 additions, 8 deletions
src/sklearn-stubs/ensemble.pyi
with
8 additions
and
9 deletions
src/skimage-stubs/filters.pyi
+
1
−
1
View file @
2a0e95df
...
...
@@ -3,7 +3,7 @@
Typing stubs for skimage.filters.
"""
from
typing
import
Optional
,
Union
,
Any
from
scientific_plots.types_
import
Matrix
from
scientific_plots.types_
import
Matrix
,
Vector
def
butterworth
(
...
...
This diff is collapsed.
Click to expand it.
src/sklearn-stubs/ensemble.pyi
+
7
−
8
View file @
2a0e95df
...
...
@@ -4,10 +4,9 @@ Typing stubs for sklearn.ensemble.
"""
from
__future__
import
annotations
from
typing
import
Optional
,
Union
,
List
,
Tuple
,
Dict
,
TypeVar
from
typing
import
Optional
,
Union
,
List
,
Dict
,
TypeVar
from
scientific_plots.types_
import
Matrix
,
Vector
as
Vector_
from
vector_type
import
Vector
# Assuming Vector is defined in vector_type module
Vector
=
TypeVar
(
"
Vector
"
,
bound
=
Union
[
Vector_
,
Matrix
])
...
...
@@ -21,7 +20,7 @@ class IsolationForest:
bootstrap
:
bool
=
False
,
n_jobs
:
Optional
[
int
]
=
None
,
behaviour
:
str
=
'
deprecated
'
,
random_state
:
Optional
[
Union
[
int
,
np
.
random
.
RandomState
]
]
=
None
,
random_state
:
Optional
[
int
]
=
None
,
verbose
:
int
=
0
,
warm_start
:
bool
=
False
)
->
None
:
...
...
...
@@ -45,18 +44,18 @@ class IsolationForest:
deep
:
bool
=
True
)
->
Dict
[
str
,
Union
[
int
,
float
,
str
,
bool
,
None
]]:
...
def
set_params
(
self
,
**
params
)
->
IsolationForest
:
...
def
set_params
(
self
,
params
:
dict
[
str
,
float
]
)
->
IsolationForest
:
...
# Additional methods for compatibility with BaseEstimator and OutlierMixin
def
__getstate__
(
self
)
->
dict
:
...
def
__setstate__
(
self
,
state
:
dict
)
->
None
:
...
def
__getstate__
(
self
)
->
dict
[
str
,
float
]
:
...
def
__setstate__
(
self
,
state
:
dict
[
str
,
float
]
)
->
None
:
...
# Properties
@property
def
estimators_
(
self
)
->
List
:
...
def
estimators_
(
self
)
->
List
[
float
]
:
...
@property
def
estimators_samples_
(
self
)
->
List
:
...
def
estimators_samples_
(
self
)
->
List
[
float
]
:
...
@property
def
max_samples_
(
self
)
->
int
:
...
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment