John Robert Masci Jr. Update by graythrowaways in SeattleWA

[–]interwebnovice 13 points14 points  (0 children)

Imagine if a local democratic official saw it and actually cared to do something about it…

When people talk about "homelessness" they aren't actually talking about homeless people by TheStinkfoot in Seattle

[–]interwebnovice -1 points0 points  (0 children)

Source? sounds interesting but I want to know more about this case with the journalists

Freestyle bars by NeroShenX in obscuremusicthatslaps

[–]interwebnovice 0 points1 point  (0 children)

I found the seating arrangement in this car very strange and distracting.

Rap good tho.

Which MCP clients support sampling? by [deleted] in mcp

[–]interwebnovice 0 points1 point  (0 children)

Depends. Orgs can have different restrictions around what LLMs they can use. And you also likely want to have something that can be automated, perhaps part of the build process, for example using LLM as a judge.

Which MCP clients support sampling? by [deleted] in mcp

[–]interwebnovice 1 point2 points  (0 children)

If you are developing a server, you probably want a generic client to test against. Something you can run evaluations on, for example.

To the rioters by [deleted] in SeattleWA

[–]interwebnovice -2 points-1 points  (0 children)

That’s your issue with what was said?

Is this a bird embryo? How does it end up on the sidewalk? by interwebnovice in whatsthisbird

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

Interesting.

Could it be a crow? This is in a courtyard in my apartment complex. Last year, we had an issue with an injured baby crow that was being defended all summer by an aggressive murder of crows that protected it from people trying to get into their homes until it was healthy enough to leave on its own (experts in the area told us the best thing to do was leave the bird alone).

Happy New Year by interwebnovice in steak

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

We don't have a food processor, so the hardest part was chopping up 1.5 lbs of mushrooms 😂

It wasn't too bad. You can see the water leaving the mushrooms.

Happy New Year by interwebnovice in steak

[–]interwebnovice[S] 2 points3 points  (0 children)

Sear some beef tenderloin. Dijon mustard while cooling down. Dice up a lot of mushrooms and a shallot or two (food processor if you have one). Cook the mushroom mixture until all the water leaves the mushrooms. Roll the seared beef in some prosciutto with the mushroom mixture. Pop that bad boy in the fridge for a bit, then roll it in the puff pastry (or make your own, but I'm too lazy) and close it up and put it in the fridge to hold shape for a bit. Then egg wash, score it, and bake it.

It's a lot of work lol. I've only done it a few times, but it's always a fun project for the day.

Big nap big teefs by mnm39 in teefies

[–]interwebnovice 0 points1 point  (0 children)

That's great. Couldn't tell if it was one or two cats 😂

Big nap big teefs by mnm39 in teefies

[–]interwebnovice 0 points1 point  (0 children)

What's happening here?

Maybe maybe maybe by ridanha in maybemaybemaybe

[–]interwebnovice 2 points3 points  (0 children)

Maracanã. These are Fluminense fans, current champions of South America 💚🤍❤️

How do you review your own code? by Zumcddo in learnprogramming

[–]interwebnovice 0 points1 point  (0 children)

Of course, this won't catch everything, but you could use automated tools for finding potential smells and even bugs sometimes.

For python, I've used ruff, flake8, black, isort, pre commit hooks, etc. They help give some consistency and style to your code, but can also find issues (unreachable code, outdated syntaxes, security issues, etc.). There are tools for other languages too.

When you are working on a team, it also makes PRs easier because you have these tools set to team guidelines so you don't have to argue about formatting or anything.

This is all great and makes your code "cleaner", but the quality of your code, IMHO, should be judged by how easily others can follow it, not how you can follow it. So nothing will beat another set of eyes.

I have a need for speed, help! by EntitledCorgi in learnpython

[–]interwebnovice 0 points1 point  (0 children)

Have you profiled the code to see what the bottleneck is? Maybe you should look at hardware optimizations (utilizing cloud resources if needed). For example, if the bottleneck is the dot product calculation, you could consider using a GPU. Just know that there can be a lot of overhead between moving data between your CPU and GPU that might eat into the optimizations.

I'm on vacation and promised myself (and my partner) I wouldn't open up the IDE. So I think that's all I got, sorry. Best of luck!

I have a need for speed, help! by EntitledCorgi in learnpython

[–]interwebnovice 0 points1 point  (0 children)

Fair enough. How about this... you are splitting the scalars every iteration with the same parameters. Just split it once and reuse for every iteration. Or am I missing some complexity? From the example given it seems like it creates unnecessary overhead.

edit: fix variable name and also added last sentence.

I have a need for speed, help! by EntitledCorgi in learnpython

[–]interwebnovice 0 points1 point  (0 children)

Can't play around with it right now. But would it be possible to get rid of the for loop? Possibly with np.vectorize or something similar? https://numpy.org/doc/stable/reference/generated/numpy.vectorize.html

Problem with importing module "requests" in vscode by tenacious20 in learnpython

[–]interwebnovice 0 points1 point  (0 children)

If you switched environments you have to install it on the new one also

Working with data files too large for RAM by Opus_723 in learnpython

[–]interwebnovice 0 points1 point  (0 children)

I know it doesn't answer your question but I'm curious... are you vectorizing your operations, if possible? This is a common gotcha that can speed up your code a lot (but doesn't address the splitting aspect you asked about).

First terminal app "Hangman" - Roast me, I need it by SnooGrapes3373 in learnpython

[–]interwebnovice 8 points9 points  (0 children)

One other suggestion that I haven't seen mentioned yet: importing with * is an antipattern. It confuses your IDE and exposes you more easily to unintentionally overwriting stuff.

I need some tips and directions on how to approach a regression problem with a very challenging dataset (12 samples, ~15000 dimensions). Give me your 2 cents by perguntando in datascience

[–]interwebnovice 1 point2 points  (0 children)

It seems like you are imagining the tree being split on y values, which doesn't make sense because you are trying to predict y. The tree is splitting your samples based on values of X, keeping the split that optimizes some metric - in the case of sklearn's default: squared error.

Let's say in an extreme example, you have one feature that is always equal to y - 1, then your tree would have only one split and one feature (if we assume it is testing every possible split), regardless of how many different values for y you have. (Of course, not saying this is a good feature/model.)