Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • P pyod
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 144
    • Issues 144
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 16
    • Merge requests 16
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages and registries
    • Packages and registries
    • Package Registry
    • Infrastructure Registry
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • Yue Zhao
  • pyod
  • Merge requests
  • !433

Clean up docstring and initialization of Autoencoder_torch

  • Review changes

  • Download
  • Email patches
  • Plain diff
Merged Lucew requested to merge github/fork/Lucew/master into development Sep 01, 2022
  • Overview 4
  • Commits 1
  • Pipelines 0
  • Changes 1

This pull request is a partial update to #375

As a first step, I cleaned the Autoencoder_Torch Docstring and Initialization in order to make clear and mention, that the learning rate is a valid parameter for the model. In the process, I also cleaned the code in the initialization and changed some wrong links (for tensorflow) to the corresponding Pytorch ones.

I did not alter any functionality, as learning rate was already supported (but very hidden).

With PyTorch it is difficult to pass an optimizer (with several changed parameters) as an instance since you need to tie it immediately to the model parameters. Unfortunately, the model can only be initialized once the amount of features is known, which is only happening once the package user calls the fit function. This is also where the Optimizer gets initialized.

https://github.com/yzhao062/pyod/blob/master/pyod/models/auto_encoder_torch.py#L259-L299

I ran the tests corresponding to the Autoencoder_PyTorch locally and all tests passed on my own fork.

Expect more PRs once I have time, but for now at least the PyTorch version of Autoencoder has an improved docstring mentioning learning rate.

All Submissions Basics:

  • Have you followed the guidelines in our Contributing document?
  • Have you checked to ensure there aren't other open Pull Requests for the same update/change?
  • Have you checked all Issues to tie the PR to a specific one?

All Submissions Cores:

  • Have you added an explanation of what your changes do and why you'd like us to include them?
  • Have you written new tests for your core changes, as applicable? not applicable
  • Have you successfully ran tests with your changes locally?
  • Does your submission pass tests, including CircleCI, Travis CI, and AppVeyor?
  • Does your submission have appropriate code coverage? The cutoff threshold is 95% by Coversall.
Assignee
Assign to
Reviewers
Request review from
Time tracking
Source branch: github/fork/Lucew/master