Better HN
topnewbestaskshowjobs
Log inSign up

CokieMonster

69 karma · joined Mar 28, 2022 (4y ago) · 10 submissions

Submissions

1.

Show HN: AWS CDK Sagemaker Serverless Hugging Face Model Deployment(github.com ↗)

1 points · by CokieMonster · 3y ago · discuss

comment 3y ago · link · parent

Im always forgetting how to use Patching and Mocking in python, so created a small MWE to remind myself of how to do it. Turns out it can do more than I thought.

Just posting her in case anyone else is always forgetting and needs a reference.

3.

Show HN: Python Patch and Mock Examples(github.com ↗)

3 points · by CokieMonster · 3y ago · 1 comment

4.

Show HN: Serverless Portrait Style Transfer(github.com ↗)

3 points · by CokieMonster · 3y ago · discuss

comment 4y ago · link · parent

I'd like to have a go at ingredient substitution next, that takes quantity into account (For instance 2 drops of vanilla essence, might be equivalent to 1/2 a vanilla pod)

comment 4y ago · link · parent

That would be nice, but at the moment the algo is at the mercy of the training dataset. The dataset doesn't distinguish adjectives from the ingredient, so this module doesn't :(

comment 4y ago · link · parent

Not yet, wanted to get something out there first. The model could do with a bit of improvement anyway.

comment 4y ago · link · parent

To be honest you might well be able to deal with it without ML and it certainly would be easier to transfer to other languages you are right. There are a couple of reasons though:

- I wanted to see if I could, I hadn't done any NLP before :) - Some ingredient strings can be complex or contain multiple quantities/ingredients e.g. "3 1/2 cups icing sugar, plus 1/2 cup for dusting". "3 ripe avocados or guacamole" - I am interested to see what can be done with the ingredient embedding, perhaps for ingredient substitution - Hopefully the ML algorithm can learn to identify the unit and quantity based on context rather than a fixed list of ingredients

9.

Show HN: PyIng – Ingredient parser

107 points · by CokieMonster · 4y ago · 31 comments