qria

u/qria


r/hackathon•

Recently got interestd hackathon judging, so looking for opportunity do to so.

I'm currently working as a ML engineer / Backend Lead for a unicorn AI Edtech company.

I see many hackathons on building apps with AI so I believe I can bring on some great taste on your hackathons.

11





r/Python•

This code has a serious bug. Can you spot it?

from functools import lru_cache
from typing import List, Set

@lru_cache
def get_all_divisors(n: int) -> Set[int]:
    """Calculate all divisors for a number. Cached for performance."""
    
    divisors = []
    for i in range(1, n + 1):
        if n % i == 0:
            divisors.append(i)
    return set(divisors)


def get_common_divisors(numbers: List[int]) -> Set[int]:
    """Calculate common divisors for list of integers"""
    if not len(numbers):
        return set()
    
    common_divisors = get_all_divisors(numbers[0])
    for number in numbers[1
4524

r/miband•

I am trying to update mi band 5's watchface in a programmatic way.

Everything else I know I can implement but I have not found a way to trigger then syncing of watchface in a programmatic way.

Any ideas?

Ultimately I am trying to implement a feature where my mi band 5 watchface is regularly updated with remotely fetched data.

31

r/statistics•

I am studying about a bunch of resampling methods such as jackknife, bootstraping, etc.

What I don't understand is how resampling makes sense in a high level perspective.

From my understanding, since resampling uses a subset of the sample, it essentially throws out some of the information, therefore any interesting statistical measures estimated through this method should have its quality degraded.

I'm sure there are explanations with calculations but I would like to know if there are any intuition level explanations on it.

32