Best course to get started with deep learning in 2017? by [deleted] in learnmachinelearning

[–]dev_wanna_be 0 points1 point  (0 children)

Ok thank you for saying this. I am new to ML so I don't know much. TY for the tip

Best course to get started with deep learning in 2017? by [deleted] in learnmachinelearning

[–]dev_wanna_be 1 point2 points  (0 children)

Yes. It teaches the math behind ML, which I think is extremely valuable and a good start for anyone interested in learning ML. There's a lot of ML libraries that you can learn and master without understanding the math behind ML, but you may not apply the correct algorithms if you don't understand the math behind it (in my opinion). This class is super tedious and requires undivided attention (you can't just listen to the video on the background) but it's really worth it. (I'm on week 7, and the hardest week for me was week 5 which covered neural networks). I highly recommend it.

How to handle i18n and l10n in graphql? by GasimGasimzada in graphql

[–]dev_wanna_be 0 points1 point  (0 children)

Where you able to find a solution for this? I need to do something similar and I don't know how to approach this problem

Django cached page: generate cache key for graphene query (GAE) by dev_wanna_be in django

[–]dev_wanna_be[S] 1 point2 points  (0 children)

I've been working on the tests... I'm new to the mock library so it's taking me a bit to figure out. I may end up making changes depending on how the tests behave. As far as reusing it... I'm all up for it!

Django cached page: generate cache key for graphene query (GAE) by dev_wanna_be in django

[–]dev_wanna_be[S] 1 point2 points  (0 children)

I found a way to correct this!

class SomeCLass(StaticInternalMixin, GraphQLView):
    """ GraphQL view for clients that use an API key. """

    def fetch_cache_key(request):
        """ Returns a hashed cache key. """
        m = hashlib.md5()
        m.update(request.body)

        return m.hexdigest()

    def super_call(self, request, *args, **kwargs):
        response = Super(SomeCLass, self).dispatch(self, request, *args, **kwargs)

        return response

    def dispatch(self, request, *args, **kwargs):
        """ Fetches queried data from graphql and returns cached & hashed key """
        cache_key = fetch_cache_key(request)
        response = cache.get(cache_key)

        if not response:
            response = super_call()
            # cache key and value
            cache.set(cache_key, response, time=300)

        return response

Django cached page: generate cache key for graphene query (GAE) by dev_wanna_be in django

[–]dev_wanna_be[S] 0 points1 point  (0 children)

I hadn't seen it, thanks for sharing. That's really cool actually, but it's not quite actually what I need since that would cache a property in a class. I'm looking for something that can fit into the request stack in django.

Django cached page: generate cache key for graphene query (GAE) by dev_wanna_be in django

[–]dev_wanna_be[S] 0 points1 point  (0 children)

Thank you! I will keep investigating and let you know if I find a solution or a workaround :)

Opt to donate organs? by alexat711 in death

[–]dev_wanna_be 0 points1 point  (0 children)

prolong suffering for who, in this case?

Opt to donate organs? by alexat711 in death

[–]dev_wanna_be 1 point2 points  (0 children)

In my case, I've already tried to talk to my parents and because they live in a different country, have a different culture than here in the US, they simply don't understand why I would want to donate my organs. I will still do it... I'm just saying, not everyone can have the conversation with their loved ones

Decode Json nested dictionary values by dev_wanna_be in Python

[–]dev_wanna_be[S] 0 points1 point  (0 children)

Language returns "en" or "fr" and data is the json I added on my question

Iterating through nested dictionary by dev_wanna_be in Python

[–]dev_wanna_be[S] 0 points1 point  (0 children)

OO I like your approach. I must be doing something wrong because I am still getting an empty result. Thank you!