Skip to content

Instantly share code, notes, and snippets.

View Dhrumilcse's full-sized avatar

Dhrumil Patel Dhrumilcse

View GitHub Profile
@Dhrumilcse
Dhrumilcse / tesla3.py
Last active September 22, 2019 19:43
#Import Library
import folium
#Create base map
map = folium.Map(location=[48.754865,2.373034], zoom_start = 10)
#Add Multiple Marker
for coordinates in [[48.754865,2.373034],[49.20858,2.605978]]:
folium.Marker(location=coordinates, icon=folium.Icon(color = 'green')).add_to(map)
@Dhrumilcse
Dhrumilcse / tesla2.py
Last active September 22, 2019 19:43
#Import Library
import folium
#Create base map
map = folium.Map(location=[48.754865,2.373034], zoom_start = 10)
#Add Marker
folium.Marker(location=[48.754865,2.373034,], popup = "Tesla Supercharger Thiais",
icon=folium.Icon(color = 'green')).add_to(map)
@Dhrumilcse
Dhrumilcse / tesla1.py
Last active September 22, 2019 17:03
#Import Library
import folium
#Create base map
map = folium.Map(location=[48.8566, 2.3522], zoom_start = 10)
#Save the map
map.save("map.html")
from sklearn.metrics import confusion_matrix
cm = confusion_matrix(Y_test, Y_pred)
print(cm)
Y_pred = classifier.predict(X_test)
Y_pred = [ 1 if y>=0.5 else 0 for y in Y_pred]
print(Y_pred)
classifier.fit(X_train, Y_train, batch_size = 10, epochs = 100)
classifier.compile(optimizer='adam', loss='mean_squared_error', metrics=['accuracy'])
classifier.add(Dense(units = 5, activation = 'relu', input_dim=9))
classifier.add(Dense(units = 3, activation = 'relu'))
classifier.add(Dense(units = 1, activation = 'sigmoid'))
classifier = Sequential()
from keras.models import Sequential
from keras.layers import Dense