[D] Undergraduate student feeling completely overwhelmed
As an undergrad student with a math major that wants to pursue ML in grad school (preferably the top ones) I am feeling completely overwhelmed. I need to keep my grades and GPA high for grad school, am doing research with professors (cannot make much progress as I don't understand much of the deep learning foundations), doing side projects, applying to internships and preparing for interviews, and trying to learn as much as possible in the field. I am also trying to improve my coding skills as I lack some of the more foundational knowledge in OOP and OS and so forth since I don't have a CS major. It honestly seems impossible to balance all of this and I find myself staying up late at night stressing out and trying to cram as possible and it doesn't seem to be getting me any closer to my goals. In fact it is affecting my health and relationships. Maybe I am expecting too much of myself an undergraduate student?
The major issue is just finding the goddamn time to learn the machine learning and deep learning content and keep up with what's going on while being a full time student. Much
/r/MachineLearning
https://redd.it/atu995
As an undergrad student with a math major that wants to pursue ML in grad school (preferably the top ones) I am feeling completely overwhelmed. I need to keep my grades and GPA high for grad school, am doing research with professors (cannot make much progress as I don't understand much of the deep learning foundations), doing side projects, applying to internships and preparing for interviews, and trying to learn as much as possible in the field. I am also trying to improve my coding skills as I lack some of the more foundational knowledge in OOP and OS and so forth since I don't have a CS major. It honestly seems impossible to balance all of this and I find myself staying up late at night stressing out and trying to cram as possible and it doesn't seem to be getting me any closer to my goals. In fact it is affecting my health and relationships. Maybe I am expecting too much of myself an undergraduate student?
The major issue is just finding the goddamn time to learn the machine learning and deep learning content and keep up with what's going on while being a full time student. Much
/r/MachineLearning
https://redd.it/atu995
reddit
r/MachineLearning - [D] Undergraduate student feeling completely overwhelmed
107 votes and 55 comments so far on Reddit
[R] Evaluating the Search Phase of Neural Architecture Search: random policy outperforms state-of-the-art NAS algorithms
https://arxiv.org/abs/1902.08142
/r/MachineLearning
https://redd.it/atwnlh
https://arxiv.org/abs/1902.08142
/r/MachineLearning
https://redd.it/atwnlh
arXiv.org
Evaluating the Search Phase of Neural Architecture Search
Neural Architecture Search (NAS) aims to facilitate the design of deep networks for new tasks. Existing techniques rely on two stages: searching over the architecture space and validating the best...
Reverse lookup on foreign key in template
I'm trying to output the field of a model instance that is a foreign key of a model that I have the context of in my template.
**Models.py**
class Product(models.Model):
title = models.CharField(max_length=120)
def __str__(self):
return self.title
class Variation(models.Model):
product = models.ForeignKey(Product, on_delete=models.CASCADE)
title = models.CharField(max_length=120)
price = models.DecimalField(decimal_places=2, max_digits=20, default=0)
def __str__(self):
return self.title
There can be many variations to one product. Within my template, the following will output the title of the variation
{cart.variation}
How can can I get the title of the product given the foreign key relationship from variation to product and output that in my template?
I've tried this, but it doesn't work:
{cart.variation.product_set.first.title}
/r/django
https://redd.it/au1tgj
I'm trying to output the field of a model instance that is a foreign key of a model that I have the context of in my template.
**Models.py**
class Product(models.Model):
title = models.CharField(max_length=120)
def __str__(self):
return self.title
class Variation(models.Model):
product = models.ForeignKey(Product, on_delete=models.CASCADE)
title = models.CharField(max_length=120)
price = models.DecimalField(decimal_places=2, max_digits=20, default=0)
def __str__(self):
return self.title
There can be many variations to one product. Within my template, the following will output the title of the variation
{cart.variation}
How can can I get the title of the product given the foreign key relationship from variation to product and output that in my template?
I've tried this, but it doesn't work:
{cart.variation.product_set.first.title}
/r/django
https://redd.it/au1tgj
reddit
r/django - Reverse lookup on foreign key in template
0 votes and 2 comments so far on Reddit
Which package do you use (or the most used) for auth with social networks (fb, github, twitter, google etc)?
I tried to use Allauth but I had some problems, some were because I did not find the answer in the doc, I had problems adding namespace / app\_name in allauth, and the last thing I can not solve is that it returns to the current path + / None when I create an account or log in, although both are successful.
​
Here are my Allauth settings for anyone who wants to help: [views and settings](https://pastebin.com/Y1W02mhJ), [template](https://pastebin.com/k6XR2Ve9).
​
By the way, my goal is to use a custom User template (which I pointed to in [settings.py](https://settings.py) and created inheriting from AbstractUser) from the normal way, and also from social networks, both using the same user template, and receiving data from social networks and adding to user fields at the time of account creation.
/r/djangolearning
https://redd.it/au3f3v
I tried to use Allauth but I had some problems, some were because I did not find the answer in the doc, I had problems adding namespace / app\_name in allauth, and the last thing I can not solve is that it returns to the current path + / None when I create an account or log in, although both are successful.
​
Here are my Allauth settings for anyone who wants to help: [views and settings](https://pastebin.com/Y1W02mhJ), [template](https://pastebin.com/k6XR2Ve9).
​
By the way, my goal is to use a custom User template (which I pointed to in [settings.py](https://settings.py) and created inheriting from AbstractUser) from the normal way, and also from social networks, both using the same user template, and receiving data from social networks and adding to user fields at the time of account creation.
/r/djangolearning
https://redd.it/au3f3v
Pastebin
[Python] urls.py from django.contrib import admin from django.urls import path, inclu - Pastebin.com
Deploying to production is turning out to be way more of a chore than I imagined
I've finally finished up a project of mine and am having an absolute nightmare of a time trying to deploy it to my Linode server.
I'm about to try Heroku just for the streamlined Django hosting, has anyone else had any trouble?
Specifically my Django Admin static files aren't loading, I've tried manually specifying the virtual environment's default Django admin static files directory in my settings.py and it just says it can't find the directory, I'm just at a loss.
/rant
/r/django
https://redd.it/au0ric
I've finally finished up a project of mine and am having an absolute nightmare of a time trying to deploy it to my Linode server.
I'm about to try Heroku just for the streamlined Django hosting, has anyone else had any trouble?
Specifically my Django Admin static files aren't loading, I've tried manually specifying the virtual environment's default Django admin static files directory in my settings.py and it just says it can't find the directory, I'm just at a loss.
/rant
/r/django
https://redd.it/au0ric
reddit
r/django - Deploying to production is turning out to be way more of a chore than I imagined
0 votes and 11 comments so far on Reddit
Recursive URL scheme?
I feel like this is one of those things that is simple if you happen to know it.. but, how would correctly construct a recursive / variable url pattern into django?
Lets say, for example, that I want URLs to look like this:
/parent/sub_parent/sub_sub_parent/child
Constructing the actual URL is simple:
class Foo(models.Model):
title = models.CharField(...)
parent = models.ForeignKey('self',...)
def get_absolute_url(self):
if self.parent:
return self.parent.get_absolute_url() + '/' + self.title + '/'
else:
return '/' + self.title + '/'
But how would I get django to _correctly_ accept that?
Thanks!
EDIT:
seems like the `path` built-in [path converter](https://docs.djangoproject.com/en/2.1/topics/http/urls/#path-converters) can do the trick!
/r/django
https://redd.it/au11qy
I feel like this is one of those things that is simple if you happen to know it.. but, how would correctly construct a recursive / variable url pattern into django?
Lets say, for example, that I want URLs to look like this:
/parent/sub_parent/sub_sub_parent/child
Constructing the actual URL is simple:
class Foo(models.Model):
title = models.CharField(...)
parent = models.ForeignKey('self',...)
def get_absolute_url(self):
if self.parent:
return self.parent.get_absolute_url() + '/' + self.title + '/'
else:
return '/' + self.title + '/'
But how would I get django to _correctly_ accept that?
Thanks!
EDIT:
seems like the `path` built-in [path converter](https://docs.djangoproject.com/en/2.1/topics/http/urls/#path-converters) can do the trick!
/r/django
https://redd.it/au11qy
reddit
r/django - Recursive URL scheme?
0 votes and 1 comment so far on Reddit
[D] Rejected by all PhD programs 3 different seasons, stay in current lab or apply again later?
**TL;DR: Want to do NLP and machine learning research but I've been rejected from every PhD program I've applied to (3 different seasons). I will likely get into the program where I'm doing my master's degree, but the group I'm with is doing biomedical NLP specifically and aren't well connected to the NLP field (especially those working on machine learning). Should I stay here for my PhD or wait and apply again later?**
Hey all
Wanted to get the community's input on my current situation and see what people think, especially regarding the importance of who you work with and the group that you are in during your PhD. Some background:
I'm currently finishing my master's in computer science at a pretty decent school (top 15). My main research interests are in NLP and machine learning. I've spent the past year doing biomedical NLP and machine learning research. I published two papers during my master's (one first author) but not at top conferences. Prior to my masters I worked in industry as a software engineer for 2.5 years, and during my undergrad I did research for two years on some applied machine learning and published 6 papers (one as first author, again not
/r/MachineLearning
https://redd.it/au5oj1
**TL;DR: Want to do NLP and machine learning research but I've been rejected from every PhD program I've applied to (3 different seasons). I will likely get into the program where I'm doing my master's degree, but the group I'm with is doing biomedical NLP specifically and aren't well connected to the NLP field (especially those working on machine learning). Should I stay here for my PhD or wait and apply again later?**
Hey all
Wanted to get the community's input on my current situation and see what people think, especially regarding the importance of who you work with and the group that you are in during your PhD. Some background:
I'm currently finishing my master's in computer science at a pretty decent school (top 15). My main research interests are in NLP and machine learning. I've spent the past year doing biomedical NLP and machine learning research. I published two papers during my master's (one first author) but not at top conferences. Prior to my masters I worked in industry as a software engineer for 2.5 years, and during my undergrad I did research for two years on some applied machine learning and published 6 papers (one as first author, again not
/r/MachineLearning
https://redd.it/au5oj1
reddit
r/MachineLearning - [D] Rejected by all PhD programs 3 different seasons, stay in current lab or apply again later?
0 votes and 2 comments so far on Reddit
Launching Jupyter in Venv
Does launching Jupyter Lab from inside an activated Venv make any terminals opened in the notebook automatically in the Venv as well?
/r/IPython
https://redd.it/au33y6
Does launching Jupyter Lab from inside an activated Venv make any terminals opened in the notebook automatically in the Venv as well?
/r/IPython
https://redd.it/au33y6
reddit
r/IPython - Launching Jupyter in Venv
1 vote and 1 comment so far on Reddit
get_object_or_404 custom message/page
I'm going though Django off tutorial and have a question regarding 404 message, I cant find a way to customize it.
Page not found(404)
No Question matches the given query.
this message is not something I would love to show on a real website.
With Http404 method it is really easy to customize an error message like tutorials shows:
from django.http import Http404
def detail(request, question_id):
try:
question = Question.objects.get(pk=question_id)
except Question.DoesNotExist:
raise Http404("Question does not exist")
Is there a similar way with get_object_or_404 method? If not, why use it?
/r/djangolearning
https://redd.it/atwg50
I'm going though Django off tutorial and have a question regarding 404 message, I cant find a way to customize it.
Page not found(404)
No Question matches the given query.
this message is not something I would love to show on a real website.
With Http404 method it is really easy to customize an error message like tutorials shows:
from django.http import Http404
def detail(request, question_id):
try:
question = Question.objects.get(pk=question_id)
except Question.DoesNotExist:
raise Http404("Question does not exist")
Is there a similar way with get_object_or_404 method? If not, why use it?
/r/djangolearning
https://redd.it/atwg50
reddit
r/djangolearning - get_object_or_404 custom message/page
2 votes and 7 comments so far on Reddit
This media is not supported in your browser
VIEW IN TELEGRAM
Animated Dijkstra, sidewinder maze, pillow and imageio (xpost /r/proceduralgeneration
/r/Python
https://redd.it/au3ha5
/r/Python
https://redd.it/au3ha5
Happening now: Pycon APAC 2019 - Talk hosted by one of Pycharm's lead devs Dmitry Trofimov
/r/Python
https://redd.it/au5owj
/r/Python
https://redd.it/au5owj
Mastering Django 2 – The Book - what are your thoughts, is it worth the price?
Hello, I'm making fairly big project with Django... Probably the way I do it is not the best way to do it but I have no other choice since I have like one month to complete the project and I have to learn on the fly. Right now I'm using django documantation and sometimes stackoverflow, but some things are not clear enough and I'm looking for another good reference material. Would "Mastering Django 2 – The Book" be good or maybe you can recommend something better?
/r/django
https://redd.it/au6t4g
Hello, I'm making fairly big project with Django... Probably the way I do it is not the best way to do it but I have no other choice since I have like one month to complete the project and I have to learn on the fly. Right now I'm using django documantation and sometimes stackoverflow, but some things are not clear enough and I'm looking for another good reference material. Would "Mastering Django 2 – The Book" be good or maybe you can recommend something better?
/r/django
https://redd.it/au6t4g
reddit
r/django - Mastering Django 2 – The Book - what are your thoughts, is it worth the price?
6 votes and 9 comments so far on Reddit
Segmentation fault with SQL Server driver on Linux?
I’m trying to run a Django application on opensuse 42.1, using python 3.4.5 and Django 2.0.14, pyodbc 4.0.25, and Django-pyodbc-azure 2.0.8
For some reason, when making multiple queries when navigating to a dashboard page, the program fails with a segmentation fault. I have installed Microsoft’s Linux drivers for sql server from their website. Has anyone run into this error and if so did you manage to find a solution?
/r/django
https://redd.it/auc3on
I’m trying to run a Django application on opensuse 42.1, using python 3.4.5 and Django 2.0.14, pyodbc 4.0.25, and Django-pyodbc-azure 2.0.8
For some reason, when making multiple queries when navigating to a dashboard page, the program fails with a segmentation fault. I have installed Microsoft’s Linux drivers for sql server from their website. Has anyone run into this error and if so did you manage to find a solution?
/r/django
https://redd.it/auc3on
reddit
r/django - Segmentation fault with SQL Server driver on Linux?
0 votes and 0 comments so far on Reddit
Where and how do all of you place your virtual environments?
I'm about to create my first virtual environments(VE) and found out there are different methods of storing all those directories. I'm just wonder what some of you do to manage and organize you folders. Please explain your reasoning if there was one. Seeing what different people do to organize their work could give me better ways to organize mine and I don't like it when my computer clutters!
​
Personally, I'm thinking of making a folder called "Projects" in my home directory. Then, create VEs in Projects.
/r/Python
https://redd.it/au904b
I'm about to create my first virtual environments(VE) and found out there are different methods of storing all those directories. I'm just wonder what some of you do to manage and organize you folders. Please explain your reasoning if there was one. Seeing what different people do to organize their work could give me better ways to organize mine and I don't like it when my computer clutters!
​
Personally, I'm thinking of making a folder called "Projects" in my home directory. Then, create VEs in Projects.
/r/Python
https://redd.it/au904b
reddit
r/Python - Where and how do all of you place your virtual environments?
6 votes and 16 comments so far on Reddit
The CPython Bytecode Compiler is Dumb[*]
https://nullprogram.com/blog/2019/02/24/
/r/Python
https://redd.it/aufd45
https://nullprogram.com/blog/2019/02/24/
/r/Python
https://redd.it/aufd45
reddit
r/Python - The CPython Bytecode Compiler is Dumb[*]
0 votes and 2 comments so far on Reddit
python autoscale to match computer resources?
I'm looking for something that can create new instances of a python script based off of the available resources on the computer.
​
My stack includes an AWS SQS which I pull from and then run operations based off of. I would like to be able to retrieve from SQS and then auto scale depending on available resources on the computer. is there anything that can help me with this or do I have to create something myself? if so what do you have any suggestions?
/r/Python
https://redd.it/aug92z
I'm looking for something that can create new instances of a python script based off of the available resources on the computer.
​
My stack includes an AWS SQS which I pull from and then run operations based off of. I would like to be able to retrieve from SQS and then auto scale depending on available resources on the computer. is there anything that can help me with this or do I have to create something myself? if so what do you have any suggestions?
/r/Python
https://redd.it/aug92z
reddit
r/Python - python autoscale to match computer resources?
0 votes and 0 comments so far on Reddit
Having trouble integrating a project with Sql Server on Linux. Wondering if anyone else has encountered this bug.
I am trying to deploy a Django app (using 2.0.13) on Python 3.4.5 to a linux server running openSuse 42.1
My app runs 5 separate api requests when the user logs in. On my local windows box, it runs fine, but when I go to deploy it to production, I get a segmentation fault. I have installed Microsofts official database drivers for both Sql Server 13.1 and 17.
​
My project dependencies are:
Django==2.0.13
pyodbc==4.0.25
django-pyodbc-azure==2.0.8.0
Has anyone else encountered an error like this before?
/r/djangolearning
https://redd.it/aue61a
I am trying to deploy a Django app (using 2.0.13) on Python 3.4.5 to a linux server running openSuse 42.1
My app runs 5 separate api requests when the user logs in. On my local windows box, it runs fine, but when I go to deploy it to production, I get a segmentation fault. I have installed Microsofts official database drivers for both Sql Server 13.1 and 17.
​
My project dependencies are:
Django==2.0.13
pyodbc==4.0.25
django-pyodbc-azure==2.0.8.0
Has anyone else encountered an error like this before?
/r/djangolearning
https://redd.it/aue61a
reddit
r/djangolearning - Having trouble integrating a project with Sql Server on Linux. Wondering if anyone else has encountered this…
1 vote and 1 comment so far on Reddit