This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import torch | |
import torch.optim as optim | |
import numpy as np | |
from matplotlib import pyplot as plt | |
from tabnanny import check | |
from sklearn.metrics import confusion_matrix | |
import seaborn as sns | |
from torch import nn | |
import torch.nn.init as init | |
from torchvision import transforms, datasets |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
""" | |
modified from several gist of https://gist.github.com/tarlanahad | |
For Homework Assingment 12 (CpE 520) | |
""" | |
import numpy as np | |
import torchvision | |
from matplotlib import pyplot as plt | |
from sklearn.metrics import confusion_matrix | |
import seaborn as sns |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
""" | |
Author: Md Mahedi Hasan | |
For Homework Assingment 12 (CpE 520) | |
""" | |
import numpy as np | |
import os | |
import matplotlib.pyplot as plt | |
from torch.utils.data import DataLoader | |
from torchvision import transforms |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
""" | |
Script to implement simple self organizing map | |
@author: Riley Smith | |
Created: 1-27-21 | |
""" | |
""" | |
@modified: Md Mahedi Hasan (11/28/2021) | |
For Homework Assingment 11 (CpE 520 | |
""" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
""" | |
Course: Applications of NN (CpE - 520) | |
Homework Assignment 9 | |
""" | |
import numpy as np | |
import pandas as pd | |
import matplotlib.pyplot as plt | |
import seaborn as sns | |
import torch |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# solving parity-3 problems using numpy only | |
from os import error | |
import numpy as np | |
import math | |
np.random.seed(1) | |
def relu(x): | |
return np.maximum(0, x) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Replacing few page from a pdf file using another pdf file | |
pdftk A=first.pdf B=second.pdf cat A1 B1 A3-end output out.pdf | |
# Above code means second page of first.pdf is replaced by the first page of second PDF | |
# merging multiple files into one file | |
pdftk file1.pdf file2.pdf cat output mergedfile.pdf |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#for equation 3 | |
\begin{align*} | |
\alpha &= | |
\begin{cases} | |
\tan^{-1}{\frac{|J_{2x}-J_{1x}|}{|J_{2y}-J_{1y}|}} & J_{2y} \neq J_{1y}\\ | |
\pi/2 & J_{2y} = J_{1y} | |
\end{cases} \\ \noalign{\vskip10pt} | |
\beta &= | |
\begin{cases} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
""" | |
Author: A cup of Tea | |
Description: Algorithm about how BD government is going to find Abrar Murderer | |
""" | |
def findGuiltyToAbrarMurder(): | |
if(guilty == activistOfBCL): | |
victim = activistOfShibir | |
silenceLikeHell() | |
useBruteForceToRemoveMovement(BCLGang, BDPolice) |
NewerOlder