Code Monkey home page Code Monkey logo

aaai-2023-the-learnability-of-nonlinear-ssl's Introduction

AAAI-2023-The-Learnability-of-Nonlinear-SSL

This project is the code for AAAI 2023 paper "Understanding Representation Learnability of Nonlinear Self-Supervised Learning".

Code of Simulation Experiments

We conduct simulation experiments on the nonlinear SSL model and the nonlinear SL model, and their update processes are in the following files:

  • SSL_update_process.py
  • SL_update_process.py

We will illustrate the role of hyperparameters. The hyperparameters d, n, T, $\eta$, $\alpha$, $\rho$, $\tau$ in the program have the same meaning as the hyperparameters in main paper. The hyperparameters $\beta_SL$ and $\gamma_F$ in SL_update_process.py are $\beta$ and $\gamma$ in the main paper. The hyperparameters epoch in the program is the number of the random seeds. The hyperparameters condition in the program is used to determine to determine which initialization strategy is used. When condition=0, we initialize $w_1$ and $w_2$ around the local minimum. When condition=1, we only guarantee the correct sign. In the SL model, the hyperparameter condition does not exist.

How to Run

You can modify the above hyperparameters to get different results for the SSL or SL model. The only thing worth noting is that you need to change the hyperparameter path to the path where the result is stored when running the program.

How to Plot Figure

In the folder, we include four programs:

  • Figure_learning_curve.py
  • Figure_learning_results.py
  • Figure_projection_e1.py
  • Figure_projection_e2.py

, and each program contains a function "get_data". You only need to change the results name in this function to get the final figure.

aaai-2023-the-learnability-of-nonlinear-ssl's People

Contributors

wanshuiyin avatar

Stargazers

Siladittya Manna avatar  avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.