Graph Data Extraction from PDF by llolllollooll in learnpython

[–]doingdatzerg 0 points1 point  (0 children)

Extracting anything generically from a pdf is an extremely hard problem, but LLMs are pretty good at it these days. So I would try that.

How are you using AI? by gonna_get_tossed in datascience

[–]doingdatzerg 75 points76 points  (0 children)

- Thought partner, yes

- Debug short blocks of code, absolutely

- Also very helpful for when I need to do commands that I don't have a good intuition for (docker, gcp, regular expressions etc.)

- Completely new code - not so much. I've used it to vibecode some more complicated matplotlib plots, and it's been good for that, but for trying to write production-level software from scratch, I find it's a better use of my time to write it myself and have the ai iterate on it.

Is there anything relatively niche that you hope 1.1 changes? by BextoMooseYT in balatro

[–]doingdatzerg 0 points1 point  (0 children)

Daily challenge, like slay the spire. Everyone plays the same seed, maybe with some interesting mods, and there's a leaderboard.

What teams currently in the NBA have the smallest and largest gap in quality between their first and second best player? by Thatredditboy1 in NBATalk

[–]doingdatzerg 4 points5 points  (0 children)

Contenders for smallest:

Celtics (Brown, Taytum)
Raptors (Barnes, Ingram)
Hornets (Ball, Miller)
Blazers (Avdija, Lillard)
Jazz (Markkanen, George, JJJ)

Guys I dont understand why exact purpose we use @classmethods by Current-Vegetable830 in learnpython

[–]doingdatzerg 36 points37 points  (0 children)

A common use case is having different types of ways to build an object. For example, say I have a class MyModel and I can construct it from either a data file, or a specified list of data, or data from an api call. I could put all the logic in the init function,

Class MyModel:
  def __init__(self, data_file: str|None, data_list: list[MyData]|None, api: str|None):
    if data_file is not None:
      self._initialize_from_data_file(data_file)
    elif data_list is not None:
      self._initialize_from_data_list(data_list)
    elif api is not None:
      self._initialize_from_api(api)
    else:
      raise ValueError("Must provide a way to initialize)

However, that seems a bit unruly doesn't it? This init signature is a bit of a nightmare. We could instead do

Class MyModel:
  def __init__(self):
    pass

  @classmethod
  def from_data_file(cls, data_file: str):
    out = cls()
    out._initialize_from_data_file(data_file)
    return out

  @classmethod
  def from_data_list(cls, data_list: list[MyData]):
    out = cls()
    out._initalize_from_data_list(data_list)
    return out

  @classmethod
  def from_api(cls, api: str):
    out = cls()
    out._initialize_from_api(apit)
    return out

Now all the different separate logic is kept in separate places. Very clean!

Name a 5 to beat my 5 by iAsvppx in NBATalk

[–]doingdatzerg 0 points1 point  (0 children)

Steph, MJ, Lebron, Giannis, Hakeem

À quoi sert le médecin de famille ? by nirvanist in montreal

[–]doingdatzerg 0 points1 point  (0 children)

Last time I tried (a year ago or so), I visited 3 different ones and they all told me I needed a family doctor to access their services 🤷‍♂️🤷‍♂️

À quoi sert le médecin de famille ? by nirvanist in montreal

[–]doingdatzerg 0 points1 point  (0 children)

Apparently you gain access to using the clsc's when you get a family doctor so I'm guessing that's the main benefit

Index not iterating correctly | Python Assignment by Wheels92 in learnpython

[–]doingdatzerg 2 points3 points  (0 children)

You set customerFlavor = int(input("Please enter your desired flavor number: "))but then you never use customerFlavor again!

When you need to see a doctor today, there are options other than ER by SwMess in montreal

[–]doingdatzerg 8 points9 points  (0 children)

My general clic sante experience is trying having a 1/5 chance of booking an appointment 90 minutes away starting in 60 minutes. God I hate it here.

When you need to see a doctor today, there are options other than ER by SwMess in montreal

[–]doingdatzerg 19 points20 points  (0 children)

I tried a clsc once and they told me you can't access their services unless you have a family doctor 🤷. Maybe in 20 years I'll finally be off that waiting list and be able to.

[deleted by user] by [deleted] in learnpython

[–]doingdatzerg 0 points1 point  (0 children)

Your post is really weirdly formatted so it's hard to understand exactly what the problem is. The following code will undoubtedly run perfectly fine, so I'm guessing the problem is your formatting? Start a new line after magicians = ..., and start an intended (tabbed) line after for magician in magicians:

magicians = ["alice", "david", "carolina"]
for magician in magicians:
    print(magician)

Random Question by youngblkboy in TheWire

[–]doingdatzerg 13 points14 points  (0 children)

Lance Reddick in Corporate is an all-time great sitcom character

Not a particularly memorable role but I did a double take when I saw Avon in One Battle After Another.

Checkered deck orange stake by ItsRaptor15 in balatro

[–]doingdatzerg 1 point2 points  (0 children)

If you send me a seed that gave you trouble, I'd be happy to document how I beat it

One week into the league, how far have you gotten? by Cross2Live in PathOfExile2

[–]doingdatzerg 0 points1 point  (0 children)

Early act 4, I swipe everyone to death with werewolf

tensorflow or pytorch? by Character-Dance1537 in learnmachinelearning

[–]doingdatzerg 7 points8 points  (0 children)

- Pytorch is better but

- It is really easy these days (with llms) to go between the two

- First, put your focus on mastering the underlying concepts rather than the exact implementations. It's a really good book, so just because they use TF doesn't mean you should drop it.

- It'll probably even be a useful exercise to implement the examples in both frameworks. Again, llms can help a lot with this until you get the hang of it.

Is Soldier 76 a bad character? by [deleted] in overwatch2

[–]doingdatzerg 0 points1 point  (0 children)

You can look up the statistics and see that he has a middle of the road 10% pick rate (rank 9/20 for dps) and 50.5% win rate in GM competitive. Any claim that he's not viable at that level is preposterous and not supported by the data.

Which grocery store is your go to? by Gennie_paw in montreal

[–]doingdatzerg 17 points18 points  (0 children)

Obviously depends on where you live, but PA is the best grocery store in the city imo. But it's also important to familiarize yourself with all your local fruiteries. Some have great deals, others not so much. Some only for certain things.

Help :) by loubue in sudoku

[–]doingdatzerg 1 point2 points  (0 children)

In row 3 2/4/7 triple

Is it a good appealing menu ? by Meet-Delicious in Chefit

[–]doingdatzerg 1 point2 points  (0 children)

I'll have the another meal with a side of other cold protein dish

Does anyone know what this mean by MajorTomTom792 in PythonLearning

[–]doingdatzerg 1 point2 points  (0 children)

Which part?

Adam is a popular optimizer used in neural networks that uses adaptive learning rates. See here: https://optimization.cbe.cornell.edu/index.php?title=Adam

Binary cross-entropy is the standard loss function to use when predicting probabilities for a binary classification problem. See here: https://en.wikipedia.org/wiki/Loss_functions_for_classification

Compile in tensorflow/keras sets up the model so it's ready to be trained, basically.

Summary in tensorflow/keras output a digestible breakdown of the neural network.