Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

View rpatrik96's full-sized avatar

Patrik Reizinger rpatrik96

View GitHub Profile
@rpatrik96
rpatrik96 / pytorch_lightning_wandb_offline_sync.py
Last active July 28, 2022 05:39
PyTorch Lightning script for logging with Weights&Biases in offline mode and automatic sync at the end of training
import pytorch_lightning as pl
import wandb
from os.path import dirname
import subprocess
from pytorch_lightning.loggers.wandb import WandbLogger
from pytorch_lightning.utilities.cli import LightningCLI
class WandBOfflineSync(pl.LightningModule):
@rpatrik96
rpatrik96 / boost_python.cpp
Created November 11, 2018 00:46
Code for the article "Reizinger Patrik: Python interfész kialakítása C++-alapú függvénykönyvtárhoz Boost.Python segítségével" - supported by Tempus Közalapítvány
#include <boost/python.hpp>
using namespace boost::python;
/************************************************************/
/* C++ code which will be ported to Python with Boost.Python*/
/************************************************************/
/****************************/
/* Porting template classes */
/****************************/
@rpatrik96
rpatrik96 / WMM.md
Last active January 21, 2019 19:51
Weight matrix-based regularization techniques for deep learning

Weight Matrix Modification - a regularization approach

General description:

Author: Patrik Reizinger

The project contains the source files (without the datasets) which implement WMM (Weight Matrix Modification,) a weight matrix-based regularization technique for Deep Neural Networks. In the following the proposed methods are shortly introduced, including the evalutaion framework.

Weight shuffling

Weight shuffling is based on the assumption that locally the coefficients of a weight matrix are correlated. Based on this, I hypothesize that shuffling the weight within a rectangular window - which is under the beforementioned assumption a way of adding correlated noise to the weights - may help reduce overfitting.

Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.