Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
2
2026_Article_RESILINK_ML
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Joaquín Irazábal González
2026_Article_RESILINK_ML
Commits
03e1b37e
Commit
03e1b37e
authored
Feb 16, 2026
by
Joaquín Irazábal González
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
refactor(predict): Adjust hyperparameter sampling probabilities for improved model tuning
parent
f1e58b00
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
predict_hysteretic_curves.py
Code/src/hysteretic_curves/predict_hysteretic_curves.py
+5
-5
No files found.
Code/src/hysteretic_curves/predict_hysteretic_curves.py
View file @
03e1b37e
...
...
@@ -602,11 +602,11 @@ def train_final_full_trainpool_cached( # type: ignore
# Hyperparameter sampler
# -------------------------
def
sample_params
(
device
:
str
=
"cpu"
):
window_size
=
int
(
np
.
random
.
choice
([
40
,
60
,
80
]))
hidden_dim
=
int
(
np
.
random
.
choice
([
32
,
64
,
128
,
256
],
p
=
[
0.25
,
0.35
,
0.30
,
0.10
]))
dense_dim
=
int
(
np
.
random
.
choice
([
16
,
32
,
64
,
128
],
p
=
[
0.20
,
0.40
,
0.30
,
0.10
]))
num_layers
=
int
(
np
.
random
.
choice
([
1
,
2
,
3
],
p
=
[
0.45
,
0.40
,
0.1
5
]))
dropout
=
float
(
np
.
random
.
choice
([
0.0
,
0.1
,
0.2
,
0.3
]))
window_size
=
int
(
np
.
random
.
choice
([
40
,
60
],
p
=
[
0.6
,
0.4
]))
hidden_dim
=
int
(
np
.
random
.
choice
([
32
,
64
,
128
],
p
=
[
0.30
,
0.45
,
0.25
]))
dense_dim
=
int
(
np
.
random
.
choice
([
16
,
32
,
64
],
p
=
[
0.25
,
0.50
,
0.25
]))
num_layers
=
int
(
np
.
random
.
choice
([
1
,
2
],
p
=
[
0.55
,
0.4
5
]))
dropout
=
float
(
np
.
random
.
choice
([
0.0
,
0.1
,
0.2
]))
lr
=
float
(
10
**
np
.
random
.
uniform
(
-
4.0
,
-
2.6
))
weight_decay
=
float
(
10
**
np
.
random
.
uniform
(
-
6.0
,
-
3.5
))
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment