Skip to content

Instantly share code, notes, and snippets.

View qin-yu's full-sized avatar
🦏
Bioimage Safari

Qin Yu qin-yu

🦏
Bioimage Safari
  • EMBL
  • Heidelberg, Germany
  • 20:35 (UTC +02:00)
  • LinkedIn in/qin-yu
View GitHub Profile
@dblalock
dblalock / ML Meta-analyses.md
Last active November 28, 2023 14:50
List of meta-analyses / independent benchmarking of machine learning and data mining papers
@mevers
mevers / my.vennDiagram.R
Last active August 27, 2020 08:42
Modified limma::vennDiagram to remove box and add label
my.vennDiagram <- function (object, include = "both", names = NULL, mar = rep(1,
4), cex = c(1.5, 1, 0.7), lwd = 1, circle.col = NULL, counts.col = NULL,
show.include = NULL, ...)
{
include <- as.character(include)
LenInc <- min(length(include), 2)
if (is(object, "VennCounts")) {
include <- include[1]
LenInc <- 1
}
@quanvuong
quanvuong / multiple_head.py
Last active October 3, 2023 13:43
Multiple head network with pytorch
import torch
import torch.nn as nn
from torch.autograd import Variable
# Do this to display pytorch version.
# The version used in this gist is 0.3.0.post4.
print(torch.__version__)
# There are three steps to demonstrate multi head network
# 1. build the network
@sjqtentacles
sjqtentacles / mat2csvUsingPython.py
Created September 13, 2015 23:32
Converting .mat to .csv using python
import scipy.io
import numpy as np
data = scipy.io.loadmat("subject.mat")
for i in data:
if '__' not in i and 'readme' not in i:
np.savetxt(("filesforyou/"+i+".csv"),data[i],delimiter=',')
@gitaarik
gitaarik / git_submodules.md
Last active May 4, 2024 11:10
Git Submodules basic explanation

Git Submodules basic explanation

Why submodules?

In Git you can add a submodule to a repository. This is basically a repository embedded in your main repository. This can be very useful. A couple of usecases of submodules:

  • Separate big codebases into multiple repositories.