Skip to content

Instantly share code, notes, and snippets.

@fdbesanto2
fdbesanto2 / 3D_procedural_terrain.py
Created August 24, 2024 15:37 — forked from MrStickyPiston/3D_procedural_terrain.py
A program to generate 3d terrain in python
import random
import sys
import noise
import numpy as np
import matplotlib.pyplot
if "--seed" in sys.argv:
try:
seed = int(sys.argv[sys.argv.index("--seed")+1])
@fdbesanto2
fdbesanto2 / fracnd.py
Created August 24, 2024 15:34 — forked from baskayj/fracnd.py
FracND: N-dimensional, parallelized sliding window fractal dimension and lacunarity calculator
import numpy as np
import matplotlib.pyplot as plt
import seaborn as sns
from multiprocessing import Pool
from scipy.stats import t
from tqdm import tqdm
class FracND:
class Worker:
def __call__(self, window):
@fdbesanto2
fdbesanto2 / setup.sh
Created August 24, 2024 15:31 — forked from chris-sev/setup.sh
Mac Setup
# how to run this thingy
# create a file on your mac called setup.sh
# run it from terminal with: sh setup.sh
# heavily inspired by https://twitter.com/damcclean
# https://github.com/damcclean/dotfiles/blob/master/install.sh
# faster dock hiding/showing (run in terminal)
# defaults write com.apple.dock autohide-delay -float 0; defaults write com.apple.dock autohide-time-modifier -int 0;killall Dock
@fdbesanto2
fdbesanto2 / satellite_image_classification.py
Created August 5, 2023 14:48 — forked from floew2/satellite_image_classification.py
A workflow for classifying Landsat satellite images
'''
A workflow for classifying Landsat remote sensing imagery
involves utilizing soft voting with SVM and Gradient Boosting classifiers.
The Isolation Forest algorithm is applied to identify outliers in the
training data. Feature selection is performed through a Recursive Feature
Elimination approach. The outcome consists of classification and classification
probability raster images saved in TIF format.
Author: Fabian Löw
Date: June 2023
@fdbesanto2
fdbesanto2 / s1multitempclass.ipynb
Created August 5, 2023 14:30 — forked from mortcanty/s1multitempclass.ipynb
S1MultitempClass.ipynb
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@fdbesanto2
fdbesanto2 / s2cnnclass.ipynb
Created August 5, 2023 14:29 — forked from mortcanty/s2cnnclass.ipynb
s2cnnclass.ipynb
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@fdbesanto2
fdbesanto2 / imadtutorial.ipynb
Created August 5, 2023 14:29 — forked from mortcanty/imadtutorial.ipynb
iMADTutorial.ipynb
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@fdbesanto2
fdbesanto2 / semantic_segmentation.ipynb
Created August 5, 2023 14:28 — forked from mortcanty/semantic_segmentation.ipynb
Semantic_Segmentation.ipynb
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

This page is a curated collection of Jupyter/IPython notebooks that are notable for some reason. Feel free to add new content here, but please try to only include links to notebooks that include interesting visual or technical content; this should not simply be a dump of a Google search on every ipynb file out there.

Important contribution instructions: If you add new content, please ensure that for any notebook you link to, the link is to the rendered version using nbviewer, rather than the raw file. Simply paste the notebook URL in the nbviewer box and copy the resulting URL of the rendered version. This will make it much easier for visitors to be able to immediately access the new content.

Note that Matt Davis has conveniently written a set of bookmarklets and extensions to make it a one-click affair to load a Notebook URL into your browser of choice, directly opening into nbviewer.

'''This script goes along the blog post
"Building powerful image classification models using very little data"
from blog.keras.io.
It uses data that can be downloaded at:
https://www.kaggle.com/c/dogs-vs-cats/data
In our setup, we:
- created a data/ folder
- created train/ and validation/ subfolders inside data/
- created cats/ and dogs/ subfolders inside train/ and validation/
- put the cat pictures index 0-999 in data/train/cats