Skip to content

Commit

Permalink
Do not override regularizer default parameters
Browse files Browse the repository at this point in the history
In the spirit of 2291f86.
  • Loading branch information
timokau committed Jun 27, 2020
1 parent 0a6d8f7 commit 82a2869
Show file tree
Hide file tree
Showing 17 changed files with 17 additions and 17 deletions.
2 changes: 1 addition & 1 deletion csrank/choicefunction/cmpnet_choice.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ def __init__(
n_units=8,
loss_function="binary_crossentropy",
batch_normalization=True,
kernel_regularizer=l2(1e-4),
kernel_regularizer=l2(),
kernel_initializer="lecun_normal",
activation="relu",
optimizer=SGD,
Expand Down
2 changes: 1 addition & 1 deletion csrank/choicefunction/fate_choice.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ def __init__(
loss_function=binary_crossentropy,
activation="selu",
kernel_initializer="lecun_normal",
kernel_regularizer=l2(0.01),
kernel_regularizer=l2(),
optimizer=SGD,
batch_size=256,
metrics=(),
Expand Down
2 changes: 1 addition & 1 deletion csrank/choicefunction/feta_choice.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ def __init__(
num_subsample=5,
loss_function=binary_crossentropy,
batch_normalization=False,
kernel_regularizer=l2(1e-4),
kernel_regularizer=l2(),
kernel_initializer="lecun_normal",
activation="selu",
optimizer=SGD,
Expand Down
2 changes: 1 addition & 1 deletion csrank/choicefunction/ranknet_choice.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ def __init__(
n_units=8,
loss_function="binary_crossentropy",
batch_normalization=True,
kernel_regularizer=l2(1e-4),
kernel_regularizer=l2(),
kernel_initializer="lecun_normal",
activation="relu",
optimizer=SGD,
Expand Down
2 changes: 1 addition & 1 deletion csrank/core/cmpnet_core.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ def __init__(
n_units=8,
loss_function="binary_crossentropy",
batch_normalization=True,
kernel_regularizer=l2(1e-4),
kernel_regularizer=l2(),
kernel_initializer="lecun_normal",
activation="relu",
optimizer=SGD,
Expand Down
2 changes: 1 addition & 1 deletion csrank/core/fate_network.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ def __init__(
n_hidden_joint_units=32,
activation="selu",
kernel_initializer="lecun_normal",
kernel_regularizer=l2(0.01),
kernel_regularizer=l2(),
optimizer=SGD,
batch_size=256,
random_state=None,
Expand Down
2 changes: 1 addition & 1 deletion csrank/core/feta_network.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ def __init__(
num_subsample=5,
loss_function=hinged_rank_loss,
batch_normalization=False,
kernel_regularizer=l2(1e-4),
kernel_regularizer=l2(),
kernel_initializer="lecun_normal",
activation="selu",
optimizer=SGD,
Expand Down
2 changes: 1 addition & 1 deletion csrank/core/ranknet_core.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ def __init__(
n_units=8,
loss_function="binary_crossentropy",
batch_normalization=True,
kernel_regularizer=l2(1e-4),
kernel_regularizer=l2(),
kernel_initializer="lecun_normal",
activation="relu",
optimizer=SGD,
Expand Down
2 changes: 1 addition & 1 deletion csrank/discretechoice/cmpnet_discrete_choice.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ def __init__(
n_units=8,
loss_function="binary_crossentropy",
batch_normalization=True,
kernel_regularizer=l2(1e-4),
kernel_regularizer=l2(),
kernel_initializer="lecun_normal",
activation="relu",
optimizer=SGD,
Expand Down
2 changes: 1 addition & 1 deletion csrank/discretechoice/fate_discrete_choice.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ def __init__(
n_hidden_joint_units=32,
activation="selu",
kernel_initializer="lecun_normal",
kernel_regularizer=l2(0.01),
kernel_regularizer=l2(),
optimizer=SGD,
batch_size=256,
random_state=None,
Expand Down
2 changes: 1 addition & 1 deletion csrank/discretechoice/feta_discrete_choice.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ def __init__(
num_subsample=5,
loss_function="categorical_hinge",
batch_normalization=False,
kernel_regularizer=l2(1e-4),
kernel_regularizer=l2(),
kernel_initializer="lecun_normal",
activation="selu",
optimizer=SGD,
Expand Down
2 changes: 1 addition & 1 deletion csrank/discretechoice/ranknet_discrete_choice.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ def __init__(
n_units=8,
loss_function="binary_crossentropy",
batch_normalization=True,
kernel_regularizer=l2(1e-4),
kernel_regularizer=l2(),
kernel_initializer="lecun_normal",
activation="relu",
optimizer=SGD,
Expand Down
2 changes: 1 addition & 1 deletion csrank/objectranking/cmp_net.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ def __init__(
n_units=8,
loss_function="binary_crossentropy",
batch_normalization=True,
kernel_regularizer=l2(1e-4),
kernel_regularizer=l2(),
kernel_initializer="lecun_normal",
activation="relu",
optimizer=SGD,
Expand Down
2 changes: 1 addition & 1 deletion csrank/objectranking/fate_object_ranker.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ def __init__(
n_hidden_joint_units=32,
activation="selu",
kernel_initializer="lecun_normal",
kernel_regularizer=l2(0.01),
kernel_regularizer=l2(),
optimizer=SGD,
batch_size=256,
loss_function=hinged_rank_loss,
Expand Down
2 changes: 1 addition & 1 deletion csrank/objectranking/feta_object_ranker.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ def __init__(
num_subsample=5,
loss_function=hinged_rank_loss,
batch_normalization=False,
kernel_regularizer=l2(1e-4),
kernel_regularizer=l2(),
kernel_initializer="lecun_normal",
activation="selu",
optimizer=SGD,
Expand Down
2 changes: 1 addition & 1 deletion csrank/objectranking/list_net.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ def __init__(
n_units=8,
loss_function=plackett_luce_loss,
batch_normalization=False,
kernel_regularizer=l2(1e-4),
kernel_regularizer=l2(),
activation="selu",
kernel_initializer="lecun_normal",
optimizer=SGD,
Expand Down
2 changes: 1 addition & 1 deletion csrank/objectranking/rank_net.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ def __init__(
n_units=8,
loss_function="binary_crossentropy",
batch_normalization=True,
kernel_regularizer=l2(1e-4),
kernel_regularizer=l2(),
kernel_initializer="lecun_normal",
activation="relu",
optimizer=SGD,
Expand Down

0 comments on commit 82a2869

Please sign in to comment.