Python Daily
2.57K subscribers
1.48K photos
53 videos
2 files
38.9K links
Daily Python News
Question, Tips and Tricks, Best Practices on Python Programming Language
Find more reddit channels over at @r_channels
Download Telegram
[D] Machine Learning - WAYR (What Are You Reading) - Week 57

This is a place to share machine learning research papers, journals, and articles that you're reading this week. If it relates to what you're researching, by all means elaborate and give us your insight, otherwise it could just be an interesting paper you've read.

Please try to provide some insight from your understanding and please don't post things which are present in wiki.

Preferably you should link the arxiv page (not the PDF, you can easily access the PDF from the summary page but not the other way around) or any other pertinent links.

Previous weeks :

|1-10|11-20|21-30|31-40|41-50|51-60|
|----|-----|-----|-----|-----|-----|
|[Week 1](https://www.reddit.com/4qyjiq)|[Week 11](https://www.reddit.com/57xw56)|[Week 21](https://www.reddit.com/60ildf)|[Week 31](https://www.reddit.com/6s0k1u)|[Week 41](https://www.reddit.com/7tn2ax)|[Week 51](https://reddit.com/9s9el5)||||
|[Week 2](https://www.reddit.com/4s2xqm)|[Week 12](https://www.reddit.com/5acb1t)|[Week 22](https://www.reddit.com/64jwde)|[Week 32](https://www.reddit.com/72ab5y)|[Week 42](https://www.reddit.com/7wvjfk)|[Week 52](https://reddit.com/a4opot)||
|[Week 3](https://www.reddit.com/4t7mqm)|[Week 13](https://www.reddit.com/5cwfb6)|[Week 23](https://www.reddit.com/674331)|[Week 33](https://www.reddit.com/75405d)|[Week 43](https://www.reddit.com/807ex4)|[Week 53](https://reddit.com/a8yaro)||
|[Week 4](https://www.reddit.com/4ub2kw)|[Week 14](https://www.reddit.com/5fc5mh)|[Week 24](https://www.reddit.com/68hhhb)|[Week 34](https://www.reddit.com/782js9)|[Week 44](https://reddit.com/8aluhs)|[Week 54](https://reddit.com/ad9ssz)||
|[Week 5](https://www.reddit.com/4xomf7)|[Week 15](https://www.reddit.com/5hy4ur)|[Week 25](https://www.reddit.com/69teiz)|[Week 35](https://www.reddit.com/7b0av0)|[Week 45](https://reddit.com/8tnnez)|[Week 55](https://reddit.com/ai29gi)||
|[Week 6](https://www.reddit.com/4zcyvk)|[Week 16](https://www.reddit.com/5kd6vd)|[Week 26](https://www.reddit.com/6d7nb1)|[Week 36](https://www.reddit.com/7e3fx6)|[Week 46](https://reddit.com/8x48oj)|[Week 56](https://reddit.com/ap8ctk)||
|[Week 7](https://www.reddit.com/52t6mo)|[Week 17](https://www.reddit.com/5ob7dx)|[Week 27](https://www.reddit.com/6gngwc)|[Week 37](https://www.reddit.com/7hcc2c)|[Week 47](https://reddit.com/910jmh)||
|[Week 8](https://www.reddit.com/53heol)|[Week 18](https://www.reddit.com/5r14yd)|[Week 28](https://www.reddit.com/6jgdva)|[Week 38](https://www.reddit.com/7kgcqr)|[Week 48](https://reddit.com/94up0g)||
|[Week 9](https://www.reddit.com/54kvsu)|[Week 19](https://www.reddit.com/5tt9cz)|[Week 29](https://www.reddit.com/6m9l1v)|[Week 39](https://www.reddit.com/7nayri)|[Week 49](https://reddit.com/98n2rt)||
|[Week 10](https://www.reddit.com/56s2oa)|[Week 20](https://www.reddit.com/5wh2wb)|[Week 30](https://www.reddit.com/6p3ha7)|[Week 40](https://www.reddit.com/7qel9p)|[Week 50](https://reddit.com/9cf158)||

Most upvoted papers two weeks ago:

/u/whenmaster: [Self-Attention Generative Adversarial Networks](https://arxiv.org/abs/1805.08318)

/u/UnluckyLocation: [Dynamic Sum Product Networks for Tractable Inference on Sequence Data](https://arxiv.org/abs/1511.04412)

/u/lmcinnes: [Limit theory for point processes in manifolds](https://arxiv.org/abs/1104.0914)

Besides that, there are no rules, have fun.

/r/MachineLearning
https://redd.it/auci7c
multiprocessing help

def calc_square(numbers):
for n in numbers:
print(n**2)

def calc_cube(numbers):
for n in numbers:
print(n**3)

if __name__ == "__main__":
arr = [2,3,5,8,13,21,34,55]
p1 = multiprocessing.Process(target=calc_square, args=(arr, ))
p2 = multiprocessing.Process(target=calc_cube, args=(arr, ))

p1.start()
p2.start()

p1.join()
p2.join()

I'm trying to do multiprocessing with Python 3. Whenever I run the code above, it doesn't seem to do anything. I would expect it to print the squares and cubes of the values in arr. Did I do something wrong?

/r/Python
https://redd.it/auhwm5
How To Set Up Jupyter Notebook with Python 3 on Ubuntu 18.04

[http://dev.edupioneer.net/7145a27b50](http://dev.edupioneer.net/7145a27b50)

/r/Python
https://redd.it/aujajd
Made a reddit scapper for updating wallpapers

Hello, I wanted to learn about reddit scrapping using praw, so I made a GUI app using PyQt which will browse a given subreddit and will download top images every week and change your wallpaper everyday.

​

[Github Link](https://github.com/vinaysb/Wallpaper-Updater)

/r/Python
https://redd.it/aujkel
Does anybody know what is going on with micropython?

This topic might be a bit off-topic here, but the micropython-themed subs are dead. Has the project failed or something? Has the hardware side been abandoned by the official micropython team? The pyboard is permanently "out of stock".

Is there a new reference board? Something I can buy to play around with no real goal in mind?

/r/Python
https://redd.it/aulvm0
Several Django projects, one Web Server

Which is the best approach to deploy different Django projects under the same Web Server?


I got a Ubuntu Server, running Nginx, and I got a Django project (django-wiki) under [www.example.com](https://www.example.com)

​

But I need to create others apps and install other packages like django-blog, create a custom system and add new ideas for further projects.


Should I have a virtual environment for each project?


/opt/wiki/venv

/opt/blog/venv

/opt/my-new-proj/venv

​

Creating different files to start/stop at boot using gunicorn under systemD or should I group the different projects under the same folder and overload the virtual environment?


If I keep the projects isolated, using Gunicorn I could create different files to use with SystemD. Is it fine?

​

Also, what happens with the Nginx config files serving different projects like

[www.example.com/wiki](https://www.example.com/wiki)

[www.example.com/blog](https://www.example.com/blog)

[www.example.com/my-new-proj](https://www.example.com/my-new-proj)

​

I would like to know your ideas and advice about good practices deploying Django apps.

​

Thanks in advance!

​

/r/django
https://redd.it/auo855
I was playing with turtle and made this

/r/Python
https://redd.it/aup1c3
Django Saleor cms code explained

Django Saleor cms code explained

​

hello not sure if you anyone would be willing help but i have the python down and looking to dive down into the language more so i wondering if anyone could give me walk through of saleor code and help me learn of it all works togather.



example would be how saleor sends data from dashboard to database when i create a new product and what code is responsible for that?

more then willing to pay for this service

/r/django
https://redd.it/aur6cy
[D] Great idea, how to publish?

I'm an independent software developer. While working on my own image processing project I invented a "thing". There is no reason to keep it to myself, as idea it's not patentable. What I'd like is to make it public and add something to my resume. What is the right way of doing it?
As for the idea:

1. It gives great, clear benefits.

2. it's generic and applicable in other domains as well.

3. it's intuitive. If I tell most of you will say 'nice' even before looking at the results.

4. it's easy to implement. I did it in pytorch, it's as easy to do in tensorflow or any other similar tool.


It would be quite popular, but I've seen nothing like this. So, I think it's something really new and worth publishing.

/r/MachineLearning
https://redd.it/aul89k
This media is not supported in your browser
VIEW IN TELEGRAM
First Program / GUI EVER! (Follow Up Video) | This is a continuation from last week where I posted my flooring calculator CLI program that everyone was so supportive of. Just wanted to let everyone know I have made a GUI for it. Not quite finished but it works flawlessly! :D

/r/Python
https://redd.it/aup5bi
Simple Flask Apps (no db)

I'm teaching a Flask course at the moment, and the requirements are that students do *not* use a database (introduced next unit). There's no flexibility around this requirement.

​

What are some ideas for apps that students can create? Here are a couple I've come up with:

* Madlibs
* Coin toss
* Random numbers
* Random student from list
* Tax calculator
* Home loan repayment calculator

​

Some simple APIs that they've experimented with:

* Chuck Norris
* ISS

/r/flask
https://redd.it/aus1jh
Trouble rendering wtform validator error

With the below I have a simple form with a text input box. I have set the `InputRequired()` validator on `SignUpForm`; however when I run localhost I don't get the validator message "Wrong value" if no input is supplied when I push the submit button.

​

from flask import Flask, request, render_template, redirect, url_for
from . import forms

app = Flask(__name__)
app.secret_key = "Shhhhh!"

@app.route('/', methods=['GET', 'POST'])
def index():
form = forms.SignUpForm()
if form.validate_on_submit():
return redirect(url_for('forward'))
return render_template('index.html', form=form)

@app.route('/forward', methods=['POST'])
def forword():
if request.method == 'POST':
return render_template('forward.html')

​

from flask_wtf import FlaskForm
from wtforms import StringField, SubmitField
from wtforms.validators import InputRequired, Email


/r/flask
https://redd.it/auucc8
[R] AdaBound: An optimizer that trains as fast as Adam and as good as SGD (ICLR 2019), with A PyTorch Implementation

Hi! I am an undergrad doing research in the field of ML/DL/NLP. This is my first time to write a post on Reddit. :D

We developed a new optimizer called **AdaBound**, hoping to achieve a faster training speed as well as better performance on unseen data. Our paper, *Adaptive Gradient Methods with Dynamic Bound of Learning Rate*, has been accepted by ICLR 2019 and we just updated the camera ready version on open review.

I am very excited that a PyTorch implementation of AdaBound is publicly available now, and a PyPI package has been released as well. You may install and try AdaBound easily via `pip` or directly copying & pasting. I also wrote a post to introduce this lovely new optimizer.

​

Here's some quick links:

**Website:** [https://www.luolc.com/publications/adabound/](https://www.luolc.com/publications/adabound/)

**GitHub:** [https://github.com/Luolc/AdaBound](https://github.com/Luolc/AdaBound)

**Open Review:** [https://openreview.net/forum?id=Bkg3g2R9FX](https://openreview.net/forum?id=Bkg3g2R9FX)

**Abstract:**

Adaptive optimization methods such as AdaGrad, RMSprop and Adam have been proposed to achieve a rapid training process with an element-wise scaling term on learning rates. Though prevailing, they are observed to generalize poorly compared with SGD or even fail to converge due to unstable and extreme learning rates. Recent work has put forward some algorithms such as AMSGrad to tackle this issue but they failed to achieve considerable improvement over existing methods. In

/r/MachineLearning
https://redd.it/auvj3q
Just created my first web app using Flask and have a noob question

First off, Flask is really awesome. I’ve been programming for about 4 months now, and building this application was really cool, challenging, and sort of inspiring. The question I have is: is it possible to create the web server on say a Raspberry Pi, and then access it remotely from another machine? If so where would I look to learn how to do this?

/r/flask
https://redd.it/auipte
Trouble with creating Dynamic forms

I am trying to create an application that displays a list of various questions.

Each question response in the list should be one of the following:

1. StringField()
2. SelectField()

The questions are dynamically generated from a database.

I am having trouble dynamically creating these form fields.

/r/flask
https://redd.it/auqmg5
creating event model with recurring dates

hello.

im working on a project where users can list their events. In each event, it could either be a one-day event or a recurring event. How can I implement this application?

I've looked at other packages like django-scheduling, django-recurrence, and django-eventtools, but I don't know if they are compatible with Django 2.1.

It would be cool if anyone have any experience with these packages, and know if they are up to date with the current django version.

I am also willing to implement my own version of this system, but I do not know where to start.

thank you.

Edit: With this recurring events, is it possible to search for them based on date ranges

/r/djangolearning
https://redd.it/aujbg2
This media is not supported in your browser
VIEW IN TELEGRAM
Django Jet admin interface 2.0 is now compatible with any stack with SQL database

/r/django
https://redd.it/av0dlp