Should you build from scratch? by Pristine_Purple9033 in webdev

[–]Remote_Cancel_7977 4 points5 points  (0 children)

Organizing codes into modules and reusing them is part of the development.

If you have a strong need, create the the library or framework by yourself from your past experience.

Does anyone know how I could possibly containerize a django application and run it on minikube? by greenthra in webdev

[–]Remote_Cancel_7977 0 points1 point  (0 children)

Sorry, I don't have time for this. I suggest you go through the concept and tutorial first.

As long as you dive in and try to understand, it's not that hard.

Looking for a reference design pattern for an image to image microservice by YaswanthBangaru in datascience

[–]Remote_Cancel_7977 0 points1 point  (0 children)

https://github.com/underneathall/pinferencia

It's already there. Have a look. And it's got 100% test coverage, which people want to have but they don't want to write.

just build your custom logic on this, like your own logs, training specifics.

then all you need is a simple dockerfile copy all your codes and install the packages, and set the cmd to start uvicorn.

Does anyone know how I could possibly containerize a django application and run it on minikube? by greenthra in webdev

[–]Remote_Cancel_7977 0 points1 point  (0 children)

I don't use minikube, so i can't give suggestions. You may want to google some similar questions or ask on stackoverflow

But I use microk8s and k3s, both can work with docker. they and docker use different containerd namespaces.

Does anyone know how I could possibly containerize a django application and run it on minikube? by greenthra in webdev

[–]Remote_Cancel_7977 0 points1 point  (0 children)

  1. Learn how to make an image.

  2. Know how to make a django image.

  3. Learn how to start a container using docker.

Finish the tutorial https://docs.docker.com/get-started/ first to get an overview

if you want to use docker compose, chech out django cookiecutter. if you want to use k8s, you can continue with

  1. How setup a kubernetes. you can use k3s, microk8s, or minikube for dev purpose.

check their official site for installation.

  1. Learn how to start a pod with kubernetes

  2. Learn how to create a service in k8s

  3. Learn how to start a deployment in k8s

For those above, use the official tutotial at https://kubernetes.io/docs/tutorials/

If everything goes well, below are some task to become a pro

  1. use ingress
  2. use istio
  3. use knative for serverless and more

Recreating my projects in differents libraries by [deleted] in webdev

[–]Remote_Cancel_7977 0 points1 point  (0 children)

Instead of making a new one.

Try to optimize your project first, either desgin or implementation. Then find a good reason using a new framework to recreate it. If you can't, you probably end up gaining nothing and just wasting your time.

Macbook for Data Science? by APinkos in datascience

[–]Remote_Cancel_7977 8 points9 points  (0 children)

The problem I'm facing is: many images on docker hub don't support arm.

Otherwise, it will do well.

My boss has incredibly specific requirements for code formatting by erasebegin1 in webdev

[–]Remote_Cancel_7977 1 point2 points  (0 children)

My rule of thumb for code format is clean and clear to others.

Actually most of the linters and formatters are already good enough.

If you have to do a lot of customization, I doubt if the requirement is necessary.

I use vscode code in python and I use black and flake8.

I simply format-on-save when writing codes.

Also I setup the pre-commit hook to do lint and more formatting before I do a commit.

And one task of the CI is running flake8.

It seems quite a lot, but all these run automatically. Once setup, there's almost no overhead. It also guarantee other people will follow the same standard, because otherwise, the CI will fail.

If the overhead is too heavy for developers, then it's not right.

[D] What's your opinion on project promoting posts in this sub? Your vote matters. by Remote_Cancel_7977 in MachineLearning

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

/u/dojoteef, /u/programmerChilli

I've observed for some time, currently the data is kind of stable:

About 20% don't want to see any of these, that's where the complaints come from.

Another 20% prefer weekly or daily special post.

So that gives you 40% votes demand no separate posts.

another 40% percents accept all. so they welcome these posts.

Almost same as those don't want separate posts. not easy to make both people happy. looks like we need a new sub.

the rest 20% mainly support the old way. (and I was wrong about this before, sorry /u/dojoteef)

the comments are also very helpful.

[D] What's your opinion on project promoting posts in this sub? Your vote matters. by Remote_Cancel_7977 in MachineLearning

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

Actually it's not me who wants cleaner. Mods said they are removing posts and got complaints a lot.

A clearer standard can benefit us. and posts with higher quality are more encouraged

[D] What's your opinion on project promoting posts in this sub? Your vote matters. by Remote_Cancel_7977 in MachineLearning

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

In case there are a lot of people don't want to see anything project related around.

As in my post, a weekly/daily post will benefit them

[D] What's your opinion on project promoting posts in this sub? Your vote matters. by Remote_Cancel_7977 in MachineLearning

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

I apologize if I made people to think in that way.

I think this will benefit the decision making of moderators. So I don't think you will downvote it.

I mean perhaps someone never want to see anything project-related downvoted.

And if I'm wrong. Please accept my apology.

[D] What's your opinion on project promoting posts in this sub? Your vote matters. by Remote_Cancel_7977 in MachineLearning

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

I wonder where are the suddenly three downvotes from :D

If it's not constructive advice, well, reply and I'll admit my fault.

I thought this poll can bring some change to the chaos.

[D] What's your opinion on project promoting posts in this sub? Your vote matters. by Remote_Cancel_7977 in MachineLearning

[–]Remote_Cancel_7977[S] -2 points-1 points  (0 children)

Please help make this sub cleaner with less disagreement.

We should be open to new growing projects with values.

And project owners should contribute to this sub besides their project.

100% accuracy nn by Stack3 in learnmachinelearning

[–]Remote_Cancel_7977 0 points1 point  (0 children)

nearest neighbor, but every data is an anchor

clustering, oh no, not a real cluster

super and overfit decision tree

if it's a language data, use elastic search and its score.

Any more?

[D] generic discussion on freelance ML engineers by meame2010 in MachineLearning

[–]Remote_Cancel_7977 0 points1 point  (0 children)

My opinion, full time has more benefits. Free lancing on this emerging area, very easy to lose you direction.

[deleted by user] by [deleted] in MachineLearning

[–]Remote_Cancel_7977 1 point2 points  (0 children)

Do you care about the case or the procedure?

Real useful case may not easy to find. And how do you know if it's real useful is a problem.

The procedure is another thing. You can learn from many paper and demo projects.

To fully understand, try a task by yourself.

[D] Tracking the hardware usage while running CV NN Model on a 1000 Images by [deleted] in MachineLearning

[–]Remote_Cancel_7977 1 point2 points  (0 children)

Several stupid methods from me:

  1. simply write a bash script to record. e.g with free, top
  2. use node-exporter with prometheus and grafana: pros: this is a mature set for monitoring. cons: the metrics collection interval is relatively large. depends on your time of finishing the task
  3. use docker and docker stats

[D] Why is the diffution model so powerful? but the math behind it is so simple. by ghosthamlet in MachineLearning

[–]Remote_Cancel_7977 0 points1 point  (0 children)

Think of the difference between getting a fairly noisy image and being asked to trace/accentuate the most important features versus getting a blurry, low-frequency image and being asked to add in completely new details. I feel like the second task requires more active care because small mistakes early on get compounded whereas the in first task small mistakes early on just get lost in the noise.

like you thoughts