Skip to content

Instantly share code, notes, and snippets.

View sachinruk's full-sized avatar

Sachin Abeywardana sachinruk

View GitHub Profile
@sachinruk
sachinruk / property.html
Created January 6, 2024 03:02
property
<!DOCTYPE html>
<html id="XenForo" lang="en-GB" dir="LTR" class="Public NoJs GalleryLazyLoader LoggedOut Sidebar Responsive" xmlns:fb="http://www.facebook.com/2008/fbml">
<head>
<meta name="referrer" content="origin">
<meta charset="utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=Edge,chrome=1" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
@sachinruk
sachinruk / asymmetric_loss.py
Created January 23, 2023 11:10
Asymmetric loss for mult-label classification
import torch
import torch.nn as nn
import torch.nn.functional as F
class AsymmetricLoss(nn.Module):
def __init__(
self,
gamma_neg: float = 4.0,
gamma_pos: float = 1.0,
sudo apt-get update
sudo apt-get install -y \
apt-transport-https \
ca-certificates \
curl \
gnupg-agent \
software-properties-common
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@sachinruk
sachinruk / RandomWalk.ipynb
Last active March 20, 2017 04:35
pymc3 multivariate normal random walk
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.