TensorFlow implementation of Barlow Twins

Barlow-Twins-TF This repository iimplements Barlow Twins (Barlow Twins: Self-Supervised Learning via Redundancy Reduction) in TensorFlow and demonstrates it on the CIFAR10 dataset. Summary: With a ResNet20 as a trunk and a 3-layer MLP (each layer containing 2048 units) and 100 epochs of pre-training, this training notebook can give 62.61% accuracy on the CIFAR10 test set. The pre-training total takes ~23 minutes on a single Tesla V100. There are minor differences from the original implementation. However, the original loss function and […]

Read more

Self-Supervised Contrastive Learning of Music Spectrograms

Self-Supervised Music Analysis Self-Supervised Contrastive Learning of Music Spectrograms. Dataset Songs on the Billboard Year End Hot 100 were collected from the years 1960-2020. This list tracks the top songs of the US market for a given calendar year based on aggregating metrics including streaming plays, physical and digital purchases, radio plays, etc. In total the dataset includes 5737 songs, excluding some songs which could not be found and some which are duplicates across multiple years. It’s worth noting that […]

Read more

A python library to convert arbitrary strings representing business opening hours into a JSON format

Python Opening Hours parser a python library to convert arbitrary strings representing business opening hours into a JSON format that’s easier to use in code This library parses opening hours from various human-readable strings such as “Mon- Fri 9:00am – 5:30pm” into a more standard JSON format that can be processed more easily. The format opening_hours = [ { “day”: “monday”, “opens”: “9:00”, “closes”: “17:00” }, //.. ] Installation pip install jsonify-opening-hours Usage The simplest example is just printing the […]

Read more

A bot that posts a Hadith every hour on Twitter & Facebook with python

Hadith Every Hour A bot that posts a Hadith every hour on Twitter & Facebook. (Every 3 hours for now to avoid spamming) Status Currently posting the Hadiths from Sahih al-Bukhari in serial. Concept It’s really simple. GitHub action is written in this file. You can notice a scheduler – on: schedule: – cron: “0 */3 * * *” And the rest of the process is self explanatory. A tracker is used to put the latest posted Hadith number in […]

Read more

A python script for Homeassistant that counts down the days to birthdays

Date Countdown A python script for Homeassistant that counts down the days to birthdays, anniversaries etc Important note I no longer use homeassistant so if this script stops being compatible with homeassistant that will be the end of the line. That said, it hasn’t needed any maintenence in over a year and was working well so it will probably be fine to use for a long while yet. How it works This script creates a sensor that a counts down […]

Read more

A python package for simulation and gradient based parameter estimation in the context

SimPEG Simulation and Parameter Estimation in Geophysics – A python package for simulation and gradient based parameter estimation in the context of geophysical applications. The vision is to create a package for finite volume simulation with applications to geophysical imaging and subsurface flow. To enable the understanding of the many different components, this package has the following features: modular with respect to the spacial discretization, optimization routine, and geophysical problem built with the inverse problem in mind provides a framework […]

Read more

Spotify: Machine learning to personalize the user experience

This article was published as a part of the Data Science Blogathon. What is user engagement? User engagement is the quality of the user experience that emphasizes the positive aspect of the interaction so that the person who has got this positive experience will want to use the technology longer and often. This is one of the things that a lot of companies– internet companies– try to do. There’s various characteristic. What does it mean to be engaged? Spotify is focused. […]

Read more

A Python library for pulling data out of HTML and XML files

Beautiful Soup Beautiful Soup is a Python library for pulling data out of HTML and XML files. It works with your favorite parser to provide idiomatic ways of navigating, searching, and modifying the parse tree. It commonly saves programmers hours or days of work. These instructions illustrate all major features of Beautiful Soup 4, with examples. I show you what the library is good for, how it works, how to use it, how to make it do what you want, […]

Read more

An Open source home automation platform talking with python

Home Assistant Home Assistant is the world’s largest home automation platform talking with over 1700 different devices and services. Open source home automation that puts local control and privacy first. Powered by a worldwide community of tinkerers and DIY enthusiasts. Perfect to run on a Raspberry Pi or a local server. The system is built using a modular approach so support for other devices or actions can be implemented easily. See also the section on architecture and the section on […]

Read more
1 639 640 641 642 643 920