News for hackers. Stuff that matters.

tabacof

How I lost 1000€ betting on CS:GO

I wrote two blog posts based on my experience betting on CS:GO in 2019.The first post covers the following topics:* What is your edge?* Financial decision-making with ML* One bet: Expected profits and decision rule* Multiple bets: The Kelly criterion* Probability calibration* Winner’s curseLink: https://tabacof.github.io/posts/csgo_betting_with_ml_part_1/csgo_betting_with_ml_part_1.htmlThe...

( Read More... | no comments | on HN )
Re:I lost 1000€ betting on CS:GO – Foundations on Thursday January 04, 2024 @04:04AM (#38864767)
This post covers the foundations of e-sports betting with machine learning: financial decision-making, expected profits of a bet, multiple bets with the Kelly criterion, probability calibration, and the winner’s curse.
Re:Ask HN: Could you share your personal blog here? on Tuesday July 04, 2023 @12:45PM (#36589157)
I started this blog recently, though some posts were written a few years ago (one even reached HN front page!): https://tabacof.github.io/
Re:Real-Time ML Models with Serverless AWS on Monday June 05, 2023 @11:49AM (#36198058)
I wrote the blog post above based on the learnings I had when creating a MLOps solution using AWS Lambda for machine learning model deployment.

Tl;dr: The post shows how to deploy a scikit-learn model pickle using Lambda and how to create a POST endpoint with API gateway.

Any feedback is welcome!

In this blog post, I explore the problem of name classification with ChatGPT and 3 ML models of increasing complexity (logistic regression, FastAI LSTM, and HuggingFace DistilBERT).

ChatGPT delivers the best accuracy of them all with no model training, just prompt engineering. It classifies 100k names in 18 minutes for under $5.

We see a lot of ChatGPT chat examples, but here I show how to use its API to solve an actual text classification problem (albeit a simple one).

GPT is transforming tasks that required deep machine learning knowledge into software + prompt engineering problems. As a data scientist, I’m not worried about it taking over my job, as predictive modelling is only a small aspect of what a data scientist does.

Re:Our experience with Stripe Atlas (2017) on Tuesday April 10, 2018 @10:31AM (#16801625)
Hi Soneca, I am also a Brazilian starting two very modest side business intending to sell to international customers:

1) https://www.deploir.com

2) https://www.whoworth.com

What a coincidence, huh?

In the beginning I also considered Atlas, but that seemed way too much trouble and expenses for two businesses that may or may not be viable.

In the end, I decided to go with Paddle (https://paddle.com/). The integration was really easy, it is just a button that links to my subscription plans (with webhooks that alert my server when subscriptions are created and paid).

As Brazilians say, we should "exchange stickers".

Re:Why old-school PostgreSQL is so hip again on Monday December 11, 2017 @01:10PM (#15898921)
>Spark is a terribly inefficient solution to any known/stable data processing or analytics jobs.

Can you expand on that?

Latin America is very unsafe. The list of top 50 cities by murder rate is very telling: https://en.wikipedia.org/wiki/List_of_cities_by_murder_rate

I have lived most of my life in Brazil, and even though I am very privileged, the following has happened to me: 1) Watch stolen by drug addict with a syringe when I was 12 years old 2) Cellphone stolen by a thug with a glass shard when I was 16 3) Also when I was 16, three thugs tried to steal my cellphone, they said they would blow my brains if I didn't comply and faked having a gun (I didn't). 4) Two thugs invaded my frat house, held us hostages with handguns, and stole all we had (I will never forget the cold metal of the gun touching my head, while I was threatened). 5) My car was jacked right in front of my house. 6) Another cellphone stealing incident that I'd rather not share in details. 7) My spare tire was stolen while I was in a bar for a couple of hours.

This is just what has happened to me in less than 30 years. Stories like those abound. My girlfriend also went through (4) and (7), independently of me. Pretty much everyone I know has had a cellhphone stolen at some point in their lives.

If you want to actually experience the dread that is living in Brazil, search for "brazil" in reddit's /r/watchpeopledie.

Re:Brazilian Judge Shuts Down WhatsApp for 48 Hours on Wednesday December 16, 2015 @10:50PM (#10749391)
This is insane, this judge must be on a power trip. WhatsApp is now part of Brazilian social life and economy. Everyone here is part of many groups of friends, family or workmates, that is where most instant communication happens.

In my company, our deployment engineers, who usually are on very remote places with bad and unreliable internet, rely on WhatsApp. I'm not saying this is the best practice, but this is simply the way Brazil works right now. Even the mobile phone companies offer plans with free WhatsApp connection, because that is what most people here care about. Another example: In Brazil, 9 in 10 doctors use WhatsApp to talk to patients (http://www.cityam.com/230372/digital-health-wearables-and-ap...).

To disregard all the people and businesses that rely on WhatsApp for whatever reason is unbelievable. But this is not without precedent, once another Brazilian judge blocked YouTube for a whole day because it refused to take down a celebrity video.

This says a lot about the over-sized, inefficient, and stupid state we have, always meddling and intervening.

Causality is a bit harder to integrate with current machine learning models as it's hard even with standard probabilistic graphical models. On the other hand, there has been a lot of work integrating deep neural networks with probabilistic models.

For example, the variational auto-encoders are a graphical model with Gaussian latent variables whose mean and variance are determined by (deep) neural networks [1]. There has been work exploring the neural network weights as latent variables themselves [2]. Finally, some new developments such as dropout can be interpreted as some form of deep Gaussian processes [3].

I believe there will be a lot further developments on this area in the near-future.

[1] http://arxiv.org/abs/1312.6114

[2] http://arxiv.org/abs/1505.05424

[3] http://arxiv.org/abs/1506.02142

Re:Compiling Julia for NVIDIA GPUs on Tuesday February 03, 2015 @06:17PM (#8994223)
Torch7 has amazing GPU support. If you wanna send a tensor (array) to the GPU, you just type array:cuda(). All operations you do from now on will be on the GPU.

More involved example using a neural network: http://code.cogbits.com/wiki/doku.php?id=tutorial_cuda