Skip to content

Instantly share code, notes, and snippets.

View victorouttes's full-sized avatar

Victor Outtes victorouttes

View GitHub Profile
@unstppbl
unstppbl / snx_instruction.md
Last active August 15, 2021 13:54
Fedora 34 snx installation
@dgrahn
dgrahn / keras_metrics.py
Created October 25, 2018 11:24
Metrics removed from Keras in 2.0.
"""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.
@neara
neara / forms.py
Last active June 10, 2024 15:30
Django Class Based Views and Inline Formset Example
from django.forms import ModelForm
from django.forms.models import inlineformset_factory
from models import Sponsor, Sponsorship
class SponsorForm(ModelForm):
class Meta:
model = Sponsor