Skip to content

feat(optim): SGD optimizer and MSE loss #9

@Celz-Pch

Description

@Celz-Pch

Goal

Close the training loop: forward → loss → backward → step.

Tasks

  • optim::SGD with learning rate (and optional momentum)
  • Loss functions: mse_loss, cross_entropy
  • Example: train an MLP on a toy dataset (XOR or sklearn moons)

Acceptance criteria

  • Loss decreases monotonically on the toy example
  • Example lives in examples/ and runs from a single command

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions