Skip to content

some question of linear_regression/linear_regression.py #57

@rywc2005

Description

@rywc2005

question

  1. cost_function :(1 / 2 * num_examples)(which is num_examples/2),actually should be (1 / (2 * num_examples))。this error maybe mislead the training .
  2. When processing new datas,predict and get_cost newly call prepare_for_training without the features_mean / features_deviation ,which is saved in training stage;if normalize_data=True,it maybe let the difference of norm between train&test.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions