Skip to content

Commit

Permalink
doc: Update example (change regularization) for showing how to use a …
Browse files Browse the repository at this point in the history
…custom optimizer
  • Loading branch information
andreArtelt committed Oct 2, 2020
1 parent afa16c8 commit 5136cde
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/examples/sklearn_customoptimizer.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,4 +52,4 @@ def __call__(self):

# Compute counterfactual by using our custom optimizer 'MyOptimizer'
print("\nCompute counterfactual ....")
print(generate_counterfactual(model, x, y_target=0, optimizer=MyOptimizer(), features_whitelist=None, regularization="l1", C=1.0))
print(generate_counterfactual(model, x, y_target=0, optimizer=MyOptimizer(), features_whitelist=None, regularization="l1", C=0.5))

0 comments on commit 5136cde

Please sign in to comment.