Code Monkey home page Code Monkey logo

experiments's Introduction

experiments

Repository for Throwaway Code

Snippet to find lexically unique statements in a list of statements

from fuzzywuzzy import fuzz
from typing import List

def get_uniques(sentence_list:List[str], threshold:int=51):
    uniques = [""]
    for sentence in sentence_list:
        scores = []
        for j in uniques:
            scores.append(fuzz.ratio(sentence, j))
        if max(scores) < threshold:
#             print(f"Found {len(uniques)} uniques so far")
            uniques.append(i)

Behaviour Note: Every statement that this finds is unique, but this does NOT find ALL unique statements.

Results for ShiftedReLU with Batchnorm removed experiments:

Model BN Activation Accuracy
RN18 Yes ReLU 0.64
RN18 No ReLU 0.36
RN18 Yes ELU 0.67
RN18 No ELU 0.56
RN18 Yes FastReLU 0.57
RN18 No FastReLU 0.5
RN101 Yes ReLU 0.37
RN101 No ReLU 0.33
RN101 Yes ELU 0.70
RN101 No ELU 0.34
RN101 Yes FastReLU 0.15
RN101 No FastReLU 0.37

This is interesting and acts as a sort of proxy ablation study for BathNorm itself

Links

experiments's People

Contributors

nirantk avatar yeldarby avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar

Forkers

yeldarby

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.