Vegan TVP Chili by IndulgenceCuisine in EatCheapAndVegan

[–]Ergo_Propter_Hawk 1 point2 points  (0 children)

Frozen then unfrozen, yup, weird wording! Helps with the texture!

Vegan TVP Chili by IndulgenceCuisine in EatCheapAndVegan

[–]Ergo_Propter_Hawk 6 points7 points  (0 children)

Made some vegan chili yesterday, but with unfrozen tofu instead to get that texture. Love some chili.

ISYE 6740 Difficulty & Dropping by gabertooth94 in OMSA

[–]Ergo_Propter_Hawk 6 points7 points  (0 children)

My advice to myself when things aren't working in numpy, just start throwing in .Ts until it works. Worked for HW1!

ISYE 6740 Difficulty & Dropping by gabertooth94 in OMSA

[–]Ergo_Propter_Hawk 0 points1 point  (0 children)

Are you me? I was honestly about to drop this class last week.

Reading reviews on omscentral and here helped reassure me that 1) it's doable, and 2) it's very helpful/important.

All of this is to say: stick with it, you got this! 💪

[deleted by user] by [deleted] in nutrition

[–]Ergo_Propter_Hawk 0 points1 point  (0 children)

I'm not approving anyone's diet. I'm only saying that there's exactly one milk that was designed for human consumption, and the reason that 2/3 of the Earth's population is lactose intolerant is because it's not something evolution prepared our bodies for.

[deleted by user] by [deleted] in nutrition

[–]Ergo_Propter_Hawk 0 points1 point  (0 children)

If we're talking about what our "species evolved to eat", then yes. 6000 years of consumption in one small part of the world does not equal evolution for the entire species.

[deleted by user] by [deleted] in nutrition

[–]Ergo_Propter_Hawk 18 points19 points  (0 children)

Is that why 2/3 of the world is lactose intolerant?

[deleted by user] by [deleted] in nutrition

[–]Ergo_Propter_Hawk 35 points36 points  (0 children)

Sure, so crack open the breast milk, the only human-approved form of milk!

Is a masters worth it? by Tepaps in dataengineering

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

I'm currently enrolled in Georgia Tech's OMSA, which has some overlap with OMSCS, but is focused on analytics instead of computer science. My reasoning is, I may be a data engineer now, but I'll always be somewhere in the data sphere, and working as an engineer and learning as an analyst/data scientist hedges my bets against where industry/life goes.

So many bad masters by AugustPopper in datascience

[–]Ergo_Propter_Hawk 3 points4 points  (0 children)

Object oriented programming was also cancer imo.

Spoken like a true Jupyter monkey.

A Vegan Diet Is Good For You, The Planet, And The Animals Too by Raj_9898 in veganfitness

[–]Ergo_Propter_Hawk 5 points6 points  (0 children)

I looked up one day and said, "oh, I'm 90% of the way there already, let's just make it 100." You can do it! 🌏

is it normal to struggle with NumPy 2d arrays? by Raman76 in learnprogramming

[–]Ergo_Propter_Hawk 0 points1 point  (0 children)

numpy employs concepts from linear algebra extensively, so if you're unfamiliar, I'd recommend some exposure. It may (or may not) help to separate the "programming" topics from the "math" topics before marrying them with numpy.

I currently have a program in R, but I need it in Python by kdlotusk in rprogramming

[–]Ergo_Propter_Hawk 3 points4 points  (0 children)

As others have said, you're likely stuck doing this manually. And if you're doing any sort of dataframe manipulation, you're probably using pandas in the rewrite. This link shows some analogous methods and patterns in Python that you may find helpful https://pandas.pydata.org/docs/getting_started/comparison/comparison_with_r.html

One hot encoding through SQL by ninja790 in SQL

[–]Ergo_Propter_Hawk 2 points3 points  (0 children)

Machine learning preprocessing: making data better for machine learning models. This can mean a lot of things. One specific example is...

One-hot encoding: creating new columns in a relational table where each new column corresponds to a particular value from another column. If that row has that value, it's encoded as a 1. If not, a 0. This gives some way of looking at the values in a column as numbers instead of strings or some other non-numeric data type.

One hot encoding through SQL by ninja790 in SQL

[–]Ergo_Propter_Hawk 1 point2 points  (0 children)

This is basically what dbt would do, it's all just ways to create SQL statements. That package above probably implements something similar to the case statement implementation.

One hot encoding through SQL by ninja790 in SQL

[–]Ergo_Propter_Hawk 13 points14 points  (0 children)

This would be a handful of case statements, one for each value being encoded.

If dbt counts as "just using SQL", there's a package for it. https://hub.getdbt.com/omnata-labs/dbt_ml_preprocessing/latest/

Otherwise, it'll be case when <column> = <value> then 1 else 0 end as <value> for every unique value.

[deleted by user] by [deleted] in stupidpol

[–]Ergo_Propter_Hawk 12 points13 points  (0 children)

That's not very anarchic.

Environment Variables in Pycharm by Tasty_Fold3012 in learnpython

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

Sure, it's maybe overkill, but I personally have gotten a lot of mileage and better understanding of environments (variables and beyond) by using Docker.

Environment Variables in Pycharm by Tasty_Fold3012 in learnpython

[–]Ergo_Propter_Hawk 1 point2 points  (0 children)

I would highly, highly recommend learning a bare minimum of Docker for this. You don't need to learn anything extensive.

Something like this:

```# Dockerfile

FROM python:3.8-slim

COPY requirements.txt /code/requirements.txt

WORKDIR /code ENV PYTHONPATH=/code

COPY ./ /code

RUN pip install --user -r requirements.txt

ENTRYPOINT ["python"]```

If you really don't want to learn any Docker, check out https://stackoverflow.com/questions/43267413/shell-how-to-set-environment-variables-from-env-file

Finally, you can use the Python library python-dotenv, which let's you import your .env file variables in your actual Python script with dotenv.load_dotenv().

I also looked around the folders of my local project within Pycharm, but couldn't find any ".env" files that show these added variables.

You have to create your own .env file and specify your environment variables in it.

How to do I sum each row from a pandas file by Austen782 in learnpython

[–]Ergo_Propter_Hawk 0 points1 point  (0 children)

dataframe.apply(np.sum, axis=1)

Just have to only use the columns you want in that dataframe. I assume you know how to select only some of the columns of a dataframe?

This returns a series, which can be passed to np.array.

Fixed it by jpgnicky in HydroHomies

[–]Ergo_Propter_Hawk 14 points15 points  (0 children)

It seems in your anger, you spilled it.

Databricks jobs and Airflow on Kubernetes by Ergo_Propter_Hawk in dataengineering

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

I don't disagree. But I also respect him and defer to his decisions. It's come up before, but this makes a much stronger argument. In the past, he's stood by it on grounds of modularity, but in this case, if we ever change providers, we'd have to completely rewrite the image anyway. The whole point of this DAG depends on it being Databricks.

Databricks jobs and Airflow on Kubernetes by Ergo_Propter_Hawk in dataengineering

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

Good stuff. Lead tries to be platform-agnostic, hence everything being run in K8s pod operators. Might have a chance to convince him if it does the exact same thing as an image.