FMA: A Dataset For Music Analysis

Michaël Defferrard, Kirell Benzi, Pierre Vandergheynst, Xavier Bresson, EPFL LTS2. Free Music Archive web API All the data in the raw_*.csv tables was collected from the Free Music Archive public API. With this notebook, you can: reconstruct the original data, update some fields, e.g. the track listens (play count), augment the data with newer fields… Continue reading FMA: A Dataset For Music Analysis

word2vec visualization

using vis.py ipython notebook version: https://gist.github.com/chezou/3899461aa550f73854a1 original vis.py https://github.com/nishio/mycorpus In [1]: import visword2vec # 単語で作ったモデル vis = visword2vec.visWord2Vec(“recipe_steps.bin”) # フレーズで作ったモデル vis_phrase = visword2vec.visWord2Vec(“recipe_steps-phrase.bin”) loading loaded loading loaded In [2]: def plot_both(word): vis.plot(word) vis_phrase.plot(word) In [3]: plot_both(‘チョコ’) [ 0.21099427 0.11427726] [ 0.19734898 0.13841781] In [4]: vis_phrase.plot(‘義理_チョコ’) [ 0.16700684 0.1221358 ] In [5]: plot_both(‘義理’) [ 0.17986007 0.14094272] [ 0.248188 0.16636363] In [6]: plot_both(‘あつあつ’)… Continue reading word2vec visualization

This is an IPython notebook, backed by a ruby kernel.

I wrote a kernel in Ruby that adheres to the IPython messaging protocol. Then I modified IPython, with the help of minrk from #ipython, to instantiate my Ruby Kernel instead of its own Python kernel. The IPython KernelManager start the RubyKernel as a subprocess, and from that point communication occurs over ZeroMQ, exactly as if… Continue reading This is an IPython notebook, backed by a ruby kernel.

Data Profiling

In [1]: import pandas as pd import numpy as np import matplotlib.pyplot as plt import seaborn as sns from sklearn.linear_model import LinearRegression from sklearn.model_selection import train_test_split from sklearn.preprocessing import StandardScaler from sklearn.preprocessing import MinMaxScaler from sklearn.metrics import mean_absolute_error from sklearn.metrics import mean_absolute_percentage_error import warnings warnings.filterwarnings(‘ignore’) In [2]: df = pd.read_csv(‘Salary_Data.csv’) In [3]: df.head() Out[3]: YearsExperience Salary 0 1.1… Continue reading Data Profiling

Stable Diffusion AI Notebook (Release 2.0.0)

Instructions: Execute each cell in order to mount a Dream bot and create images from text. Once cells 1-8 were run correctly you’ll be executing a terminal in cell #9, you’ll need to enter python scripts/dream.py command to run Dream bot. After launching dream bot, you’ll see: Dream > in terminal. Insert a command, eg.… Continue reading Stable Diffusion AI Notebook (Release 2.0.0)

Time Series Forecasting with Python (ARIMA, LSTM, Prophet)

In [1]: import numpy as np import pandas as pd import os from statsmodels.tsa.statespace.sarimax import SARIMAX from statsmodels.graphics.tsaplots import plot_acf,plot_pacf from statsmodels.tsa.seasonal import seasonal_decompose #from pmdarima import auto_arima from sklearn.metrics import mean_squared_error from statsmodels.tools.eval_measures import rmse import warnings warnings.filterwarnings(“ignore”) import matplotlib.pyplot as plt %matplotlib inline In this article we will try to forecast a time series… Continue reading Time Series Forecasting with Python (ARIMA, LSTM, Prophet)

Probabilistic Programming and

Probabilistic Programming & Bayesian Methods for Hackers Using Python and PyMC The Bayesian method is the natural approach to inference, yet it is hidden from readers behind chapters of slow, mathematical analysis. The typical text on Bayesian inference involves two to three chapters on probability theory, then enters what Bayesian inference is. Unfortunately, due to… Continue reading Probabilistic Programming and

HTTP and Requests

Data too large for file format source Similar Notebooks py 1 1en 5 3 requests http py 1 1en 5 3 requests http checkpoint advanced scraping form submission 15 4 http postrequest multipleparameters 15 9 http responseformats 15 11 http redirectsandtimeout 15 1 http getbasics 6 derived outputs Copyright © Code Fetcher 2022    

Django Allauth Social Login For Pre Approved Users Only

Snippet 1  from allauth.account.adapter import DefaultAccountAdapterfrom allauth.socialaccount.adapter import DefaultSocialAccountAdapterfrom django.conf import settingsfrom django.http import HttpRequestfrom django.contrib.auth import get_user_modelfrom django.http import HttpResponsefrom allauth.exceptions import ImmediateHttpResponseclass AccountAdapter(DefaultAccountAdapter):  def is_open_for_signup(self, request: HttpRequest):      return getattr(settings, “ACCOUNT_ALLOW_REGISTRATION”, False)class SocialAccountAdapter(DefaultSocialAccountAdapter):  def pre_social_login(self, request, sociallogin):      try:          get_user_model().objects.get(email=sociallogin.user.email)      except get_user_model().DoesNotExist:       … Continue reading Django Allauth Social Login For Pre Approved Users Only

How To Change User Password Using Django Admin

Snippet 1 ‘’’We can change the password using admin or superuser. Assuming you have super useralready created. Please add following urls in your url.py‘’’from django.contrib import adminfrom django.urls import path, includeurlpatterns = [   path(‘admin/’, admin.site.urls),   path(”, include (‘main.urls’)),   path(‘accounts/’, include(‘django.contrib.auth.urls’)),]‘’’In your browser go to url your site.com/admin.Add your superuser name and password.Then click on users.Click… Continue reading How To Change User Password Using Django Admin