2,207,679 questions
Best practices
2
votes
0
replies
16
views
Recommended GenerationConfig for Medical Domain LLMs: Strategies to Minimize Hallucination and Ensure Factuality
I am currently deploying a Large Language Model (e.g., Llama 3 / Mistral) for a medical application, specifically for tasks such as clinical note summarization and extracting information from oncology ...
0
votes
0
answers
24
views
LossySetItemError when converting column type of 'int64' to 'float64' with astype()
I've been trying to normalize some data in Python/Pandas, but I've encountered a bit of a conundrum. Normalizing data requires me to divide each column value by the maximum value of said column, thus ...
Best practices
0
votes
0
replies
16
views
How to identify API or WebSocket endpoints used by a browser game to send real‑time data?
I am studying how browser games send real‑time data to the client for educational purposes.
Example page:
https://www.estrelabet.bet.br/gameplay/aviator
I want to understand how the browser receives ...
Advice
0
votes
1
replies
24
views
How to correctly extract the CLS token from a Keras Hub ViT backbone, and clarify preprocessor usage and pretraining dataset?
I’m working with a Vision Transformer (ViT) backbone from Keras Hub and building my own classification head. My code looks like this:
python
def get_vit_model(model_variant='vit_base',
...
Advice
1
vote
9
replies
129
views
How do I optimize my code to solve SAT with a Rubik's cube in O(n²)?
In short, I created an algorithm that solves SAT by modeling it with a generalized Rubik's cube, and it doesn't matter if it's not the most optimal Rubik's cube solution — so I wrote the paper.
Paper ...
0
votes
1
answer
37
views
Why the right click menu not shown when I use an async service in order to check
I am using a thread and I queue the requests for language tool:
import threading
import queue
import language_tool_python
class SpellCheckService:
def __init__(self, pure_english:bool=False):
...
Advice
0
votes
9
replies
87
views
How can I create leaderboard for my quiz app in python
Is it possible if someone could guide me or explain how to create a leaderboard for my quizz app game? I have started this quiz app to study for my business exam, however I came up with an warmup ...
Advice
0
votes
8
replies
72
views
dict of count JSON
I have tried to make a a function get_statistics to make a dictionary of the JSON persistence. I started doing it manually, but it wants me to do it automatically. Currently stuck making my code of ...
Advice
0
votes
2
replies
100
views
Career Change Help - Help a brotha
I’m 28, a Physics graduate, and for the last 2.5 years I’ve been working as a consultant in the supply chain space. Most of my day-to-day work is dealing with data and building visualisations in Power ...
Tooling
0
votes
1
replies
85
views
Which tools are best for finding high-quality backlink opportunities for a new website
Running US-focused tech blog ezoon.co from . Covering AI startups, Silicon Valley news, VC funding. Need tools for: 1. Scraping TechCrunch, VentureBeat, CNBC tech from US sources 2. Auto-generate ...
Tooling
0
votes
1
replies
75
views
Which tools are best for finding high-quality backlink opportunities for a new website?
Running US-focused tech blog ezoon.co from Pakistan. Covering AI startups, Silicon Valley news, VC funding. Need tools for: 1. Scraping TechCrunch, VentureBeat, CNBC tech from US sources 2. Auto-...
Tooling
0
votes
3
replies
56
views
Advice on tools to code web-GUI or standalone-app to control iterative LLM finetuning workflow?
I’m fine-tuning LLMs using PyTorch on a workstation’s GPU that’s physically accessible in our office. I’d like to build a GUI—either a web-based one accessible from any office computer or a standalone ...
Advice
0
votes
0
replies
26
views
Chronos2: Training data
After reading some articles it is still unclear to me why exactly the AutoGluon tutorial for Chronos2 creates training data. If I am not wrong, foundation models use transfer learning and the weights ...
1
vote
1
answer
73
views
Initialize interpeter before it runs main script
I need to run python script with costly initialization (0.5 seconds). To mitigate initialization time multiple interpreters are pooled, so when need to execute arises, interpreter is taken from pool ...
Advice
0
votes
5
replies
91
views
Can I execute a function whenever a Python class has its properties changed?
In the Python program my colleagues and I are writing, we have one very important class that needs to be protected against having its properties changed erroneously. This class controls a lot of ...