Skip to content

Instantly share code, notes, and snippets.

Avatar

bertcarremans bertcarremans

View GitHub Profile
View folium_circles_markers.py
# snippet to create circles on map
coords_belgium=[50.5039, 4.4699]
pollution_map = folium.Map(location=coords_belgium, control_scale=True, zoom_start=8)
for i in range(0,len(loc_df)):
folium.Circle(location=[loc_df.iloc[i]['Latitude'], loc_df.iloc[i]['Longitude']]
, popup=loc_df.iloc[i]['SamplingPoint']
, radius=500
, color='blue'
, fill=True
@bertcarremans
bertcarremans / img_train_test_split.py
Last active Sep 15, 2020
Split images randomly over train or validation folder
View img_train_test_split.py
# Copyright 2014-2017 Bert Carremans
# Author: Bert Carremans <bertcarremans.be>
#
# License: BSD 3 clause
import os
import random
from shutil import copyfile
You can’t perform that action at this time.