Skip to content

Instantly share code, notes, and snippets.

View pishangujeniya's full-sized avatar
:octocat:
Remote committer

Pishang Ujeniya pishangujeniya

:octocat:
Remote committer
View GitHub Profile
@pishangujeniya
pishangujeniya / MySQL-8-Visual-Studio-2017-EntityFramework-Guide.md
Last active May 29, 2022 07:12
MySQL Server 8.0 with Visual Studio 2017 and EntityFramework Install Guide

Installing MySQL 8.0 Server with EntityFramework in Visual Studio 2017

  • Install MySQL Server 8.0
  • Install Complete MySQL Connector.Net x86 8.0.16
  • Install Complete MySQL Visual Studio Plugin 1.2.8
  • If after installing MySQL Visual Studio Plugin it shows warning that failed to execute comamnd devenv /updateconfiguration, then manually execute that command in Developer Command Prompt for Visual Studio 20xx with run as administrator.
  • Run this command Install-Package EntityFramework -Version 6.4.0 in Visual Studio Nuget package manager console
  • Run this command Install-Package MySql.Data -Version 8.0.16 in Visual Studio Nuget package manager console
  • Run this command Install-Package MySql.Data.EntityFramework -Version 8.0.16 in Visual Studio Nuget package manager console
@pishangujeniya
pishangujeniya / lr_finder.py
Created March 1, 2019 08:18 — forked from jeremyjordan/lr_finder.py
Keras Callback for finding the optimal range of learning rates
import matplotlib.pyplot as plt
import keras.backend as K
from keras.callbacks import Callback
class LRFinder(Callback):
'''
A simple callback for finding the optimal learning rate range for your model + dataset.
@pishangujeniya
pishangujeniya / keras_metrics.py
Last active February 3, 2020 09:33 — forked from dgrahn/keras_metrics.py
F1 Score Metrics removed from Keras in 2.0. Get True Positive, False Positive, True Negative, False Negative, Precision, Recall, Accuracy
"""Keras 1.0 metrics.
This file contains the precision, recall, and f1_score metrics which were
removed from Keras by commit: a56b1a55182acf061b1eb2e2c86b48193a0e88f7
"""
from keras import backend as K
def precision(y_true, y_pred):
"""Precision metric.