Skip to content

Commit

Permalink
Minor documentation refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
knakamura13 committed Sep 3, 2024
1 parent 0366334 commit fd7b94e
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/mlrose_ky/neural/activation/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
"""Classes for defining neural network weight optimization problems."""
"""Definitions for various neural network activation functions."""

# Authors: Genevieve Hayes (modified by Andrew Rollings, Kyle Nakamura)
# License: BSD 3-clause
5 changes: 3 additions & 2 deletions src/mlrose_ky/samples/synthetic_data.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
"""Class defining a synthetic dataset generator and a function to visualize a dataset."""

from os import makedirs
from typing import Any

import matplotlib.colors as mpl
import matplotlib.pyplot as plt
@@ -202,7 +203,7 @@ def plot_synthetic_dataset(
x_test: np.ndarray,
y_train: np.ndarray,
y_test: np.ndarray,
classifier=None,
classifier: Any = None,
transparent_bg: bool = False,
bg_color: str = "white",
) -> None:
@@ -219,7 +220,7 @@ def plot_synthetic_dataset(
Training labels.
y_test : np.ndarray
Testing labels.
classifier : optional
classifier : Any, optional
Classifier to plot decision boundary, by default None.
transparent_bg : bool, optional
Whether to make the background transparent, by default False.

0 comments on commit fd7b94e

Please sign in to comment.