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
Using model in view/api functions bad practice?

Is using say, the User model like this:

User.query.filter_by(id=0).first()
In the functions which define the endpoints bad practice? Should I make methods in the model to get the things I need?

/r/flask
https://redd.it/5ja1j8
Creating tables of values with python


###edit

id like to use this in ipython notebook if that makes a difference

******

I'm not sure if this is the best place for this question or not but I figured it
might be pandas related or something and someone here would know...


Basically I'm wondering what the best way to generate and display something such
as

t : 1, 2, 3, 4...
-----------------------
x = 2t : 2, 4, 6, 8...
-----------------------
y = 5/t : 5, 5/2, 5/3, 5/4...


Hopefully that's clearly a table of values :)

cheers


/r/pystats
https://redd.it/4f70co
No programming experience. Big ideas. How to get started?

I've got some "big data" ideas that I want to begin to explore, but my last programming experience was building HTML-based web-pages in high school. I've fooled around with "R" a little bit as well.

What is the best way to teach myself how to be a iPython ninja?

/r/IPython
https://redd.it/4u8o21
Does anyone know how to set specific vim-bindings in Ipython 5.0.0?

I have activated vim-like bindings in the profile configuration file, but I would like to set specific keybindings (like 'jk' for escape). Any ideas?

/r/IPython
https://redd.it/4tq7te
What's everyone working on this week?

Tell /r/python what you're working on this week! You can be bragging, grousing, sharing your passion, or explaining your pain. Talk about your current project or your pet project; whatever you want to share.


/r/Python
https://redd.it/5jdewv
[D] What are current relations between (algebraic) topology and deep learning?

I am a graduate student in AI with an undergrad in pure math (algebraic topology, abstract algebra, PDEs). Currently I am working a lot on deep learning - especially manifold learning and nonlinear embeddings. Since finding a mapping on a nonlinear sub manifold and the normally unknown network architecture are closely linked I asked myself, if there is a connection between the topological properties of the map/diffeomorphism generated by a DNN and it's capabilities to learn certain things. I found this introduction on colah's blog and I also started to read on the methodology of Gunnar Carlson's topological data analysis. However, colah's blog gives me the idea where the journey could head to and Carlson's way is not really connected to research on DNN (in terms of learning diffeomorphism of your data) - as far as I see it. But I am stuck finding deeper literature on that. Can you give any recommendation for papers or introductory work on this boundary? Everything bringing together the topology of neural networks, group theory and algebraization (e.g. using functors such as chain complexes or homotopy) would really interest me.

/r/MachineLearning
https://redd.it/5jfaox
Statistics for Software: Instrumenting Code for Reliability and Performance
https://www.paypal-engineering.com/2016/04/11/statistics-for-software/

/r/pystats
https://redd.it/4ecj6q