Skip to main content
Advice
0 votes
0 replies
8 views

I have a project on iris classifier, I have done most of the steps but I am stuck. How do I: 1 Update the Python code in train.py so that it can: Save the confusion matrix as a PNG image in an outputs/...
Esther's user avatar
  • 1
0 votes
0 answers
23 views

I trying to make ratelimiter for users in aiogram bot with middlware, now I created class for requests and class for ratelimiter, where reuqest are. My problem is what is better for performance and ...
madjetmax's user avatar
-2 votes
0 answers
71 views

Problem Description The RL code implements a Gymnasium-compatible environment (DoomEnv) for training reinforcement learning agents in DOOM Retro. It captures game state (observations) via shared ...
Steven Harrison III's user avatar
-9 votes
0 answers
89 views

I am learning Python and came across the end parameter in the print() function. By default, print() adds a newline after each output. However, I saw examples using end="" or end=" "...
rudrabharthi's user avatar
1 vote
2 answers
125 views

I have a value that always needs to be defined but may not always be meaningful, and I need a placeholder for when it doesn't yet have a meaningful value. Usually, I would use None as that placeholder ...
Anerdw's user avatar
  • 3,526
2 votes
1 answer
40 views

I am trying to parallelize a data-processing task where I've wrapped my logic inside a class. Each instance of the class is supposed to log its own progress to a centralized log file. However, as soon ...
ssd's user avatar
  • 109
1 vote
0 answers
37 views

I'm trying to load some .nc files this way: ds = xr.open_dataset('path/to/file.nc') At first I get no error message, but when I try to operate or simply visualize the data I get this really long ...
Ramiro chalar's user avatar
Best practices
1 vote
2 replies
38 views

Let's take a concrete example. I created the following my_function Python function: from google.cloud.aiplatform import Endpoint def my_function(existing_endpoint: Endpoint)-> str: return ...
Maxime Oriol's user avatar
Advice
0 votes
4 replies
51 views

I am working on a dataset for Housing pricing prediction problem. While I am trying to find an estimation between the features and the dependent variable price, I found there is a significant ...
Abir Kar's user avatar
-4 votes
0 answers
33 views

Recently I started learning linear algebra using Python and I came across this matplotlib and I am not sure why they use: fig,ax = plt.subplots() What does it mean exactly?
sizh's user avatar
  • 11
-2 votes
2 answers
123 views

I'm trying to return the "user_input" variable in the while loop in the "make_user_choice" function. I don't know how I should go about this. Here's my code: import random "&...
nathan's user avatar
  • 21
2 votes
2 answers
101 views

I've been messing around with OpenGL/ModernGL in Python/Pygame, and after getting my images rendered to the screen, I have been having issues rotating them. I'm aware of the order that I need to ...
user32678267's user avatar
Best practices
0 votes
3 replies
62 views

What sql function will display first 4 terms in a string. string are of 10-25 in total length. string can be number or letters. results should be sorted in descending order. data is for hockey ...
Tom Pfister's user avatar
Tooling
0 votes
4 replies
78 views

from selenium.webdriver.support import expected_conditions as EC import time \# 1. Setup Service and Driver service = Service('C:/Users/HP/Desktop/Drivers/chromedriver_win32/chromedriver.exe') driver ...
Okeke Chidindu's user avatar
Advice
0 votes
2 replies
35 views

I'm using the latest aiosmtpd module under Python 3.12 in LinuxMint 22.3. When a remote SMTP connection is made to a host running aiosmtpd, how can the remote IP address of this connection be obtained ...
HippoMan's user avatar
  • 2,400

15 30 50 per page
1
2 3 4 5
147099