sam
PHP Documentor 3
sam | PHP Documentor 3 | |
---|---|---|
3 | 11 | |
1,655 | 4,039 | |
- | 0.5% | |
0.0 | 9.0 | |
3 months ago | 1 day ago | |
Python | PHP | |
MIT License | MIT License |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
sam
-
What is the correct way to sum loss into a total loss and then to backprop?
Which from here I understand that I shouldn't use the same loss variable for both forward passes but I'm not sure how else to do this. I thought that I could maybe create a variable called total_loss and add the loss to it and then after the iterations to backprop over it, but I'm not sure if that's the correct approach.
-
[R] Sharpness-Aware Minimization for Efficiently Improving Generalization
They reached sota on a few tasks. Do you really believe that the entire community missed the magic hyperparameters of batch size 128 and Adam to beat SOTA? I think getting SOTA really solidifies the approach, albeit the 2x speed cost seems heavy. As for implementation, it looks fairly trivial to adapt to all optimizers, at least from this random github https://github.com/davda54/sam
-
Help me implement this paper expanding on Google's SAM optimizer
Here is the code for SAM. SAM isn't too complicated. There are two forward and backward passes, a gradient accent after the first one, and the gradient decent after the second. The gradient accent is to get the noised SAM model which is calculated as for each p in param group add epsilon, which is rho * (p.grad / grad_norm), with rho being SAM's only hyperparameter.
PHP Documentor 3
-
PHPDoc, PSR-5 and commenting inside the code
Also note that the tools ecosystem (IDEs and static analyzers such as PHPStan and Psalm) generally support more detailed types than you'll find in the RFC or the "official" PHPDocumentor project documentation, and they're continually evolving.
-
HOW TO USE RESTFUL RESOURCE CONTROLLERS IN LARAVEL
When running this command in your console, Artisan will create a new Controller in the app/Http/Controllers folder with some predefined methods, all these methods are related to API resources, all methods generated by the command have comments in the PHP DOCS standard (See More), with a brief description of each one's functionality.
-
Please, comment your code...
PHPDoc
-
I've noticed this syntax around - is there any "official" place where it comes from?
The original implementation, if I'm not wrong, was created by phpDocumentor, then it merged its codebase with a competing tool and now many programs contribute with their own annotations and formats.
-
Test your docblock code examples.
Another future project would be to see if it could be integrated in https://www.phpdoc.org/
-
What is the @ inside comments?
These are PHPDoc annotations. In addition to their original purpose of documenting code for humans, they're used by a range of other tools and IDEs to aid with things like type detection and other code enrichment.
-
Where can I find more information about how to write this type of comment about the different params and parts of a function? Example included
I think the original tool that implemented those annotations was phpDocumentor (if it wasn't the first, it was certainly among the pioneers), inspired by Javadoc. The original purpose was to generate documentation but, as it got popular, IDEs followed suit and started using annotations to provide code intelligence features. As of today, it's also used by code quality tools to identify potential bugs.
- Coisas que ninguém te ensina a fazer mas que todo mundo espera que você saiba: escrever documentação
-
Code documentation example for PHP projects
And the github repo: - github.com/phpDocumentor/phpDocumentor/
- Best documentation generator?
What are some alternatives?
pytorch-optimizer - torch-optimizer -- collection of optimizers for Pytorch
PunBB - PunBB forum
southpaw - Python Fanduel API (2023) - Lineup Automation
phpDox - Documentation generator for PHP Code using standard technology (SRC, DOCBLOCK, XML and XSLT)
AdamP - AdamP: Slowing Down the Slowdown for Momentum Optimizers on Scale-invariant Weights (ICLR 2021)
FluxBB - FluxBB is a fast, light, user-friendly forum application for your website.
simple-sam - Sharpness-Aware Minimization for Efficiently Improving Generalization
APIGen - PHP 7.1 ready Smart and Simple Documentation for your PHP project
RAdam - On the Variance of the Adaptive Learning Rate and Beyond
vscode - 320+ color themes for Visual Studio Code.
doctum - A php API documentation generator, fork of Sami
swagger-ui - Swagger UI is a collection of HTML, JavaScript, and CSS assets that dynamically generate beautiful documentation from a Swagger-compliant API.