Skip to main content
1 vote
0 answers
21 views

I'm just trying out/experimenting with sklearn. I'm using the California housing dataset, and I'm trying to make a pipeline to create some additional features, then take the logarithm of some features,...
Caitlin Kubina's user avatar
1 vote
0 answers
15 views

I am using Ray 2.x with the XGBoostTrainer to perform hyperparameter tuning. While Ray Tune offers a driver-side MLflowLoggerCallback, it does not provide the fine-grained control I require for ...
Satish Sersia's user avatar
3 votes
2 answers
83 views

How should we interpret this function signature ? class MyObject: def get_context_data(self, *, object_list = ..., **kwargs): context = super().get_context_data() I mean, given both the *...
jlandercy's user avatar
  • 11.7k
0 votes
0 answers
31 views

I am automating login to a session-based website using Playwright, then reusing the extracted cookies in Python's requests library to call a protected API endpoint. The login works fine, but my ...
P K's user avatar
  • 1
1 vote
0 answers
39 views

I'm trying to simulate the Win+D keyboard shortcut using the pydirectinput library. However, instead of minimizing all windows and showing the desktop, it simply output d. Environment:win10 python 3....
白镜明's user avatar
Tooling
0 votes
0 replies
21 views

I do a lot of building, so package errors cause the most friction. In particular, when working with pip, the ModuleNotFoundError: after all package names can be confusing / unexpected and not ...
Signor Pizza's user avatar
Advice
1 vote
2 replies
54 views

I am working on a keras regression network that takes about 60 input variables and outputs 35 variables. For both the input and output, about half of the variables are in the range of ±10, while the ...
Jenna's user avatar
  • 1
Tooling
2 votes
0 replies
21 views

I would like to try and create treemaps in Python that look similar to these ones : First example of what I'm aiming for Second example of what I'm aiming for (These examples come from this webpage) ...
Hippolyte's user avatar
1 vote
1 answer
25 views

My aim is to smooth mesh a segmented volume, and to voxelize the generated mesh at higher resolution. The reason I do this is I want to be able to compute the normals at the isocontours and determine &...
Daniel Bichou's user avatar
Best practices
0 votes
2 replies
62 views

I want to develop an mvp metadata-based deepfake detection tool under one month for my final year project and I am still a beginner in Python. Any advice on how I can accomplish this without failing ...
Ademu Abdullahi's user avatar
5 votes
1 answer
94 views

Consider the following snippet: from collections import UserDict class D(dict): ... d = D(foo="bar", baz=42) print(d.popitem()) # ('baz', 42) class UD(UserDict): ... ud = UD(foo="...
maejam's user avatar
  • 53
-4 votes
0 answers
51 views

I'm trying to to get the track ID in Python for a track in Spotify (https://open.spotify.com/track/track_id) after returning search results for a track using artist and track name but just keep ...
Lee's user avatar
  • 129
0 votes
0 answers
26 views

Spark SQL + Iceberg: MERGE and INSERT appear to ignore cached DataFrame and re-scan source I am trying to optimize an SCD2 flow in Spark SQL (Python API) using a cached intermediate DataFrame. ...
fabrik5k's user avatar
1 vote
1 answer
70 views

Given: for i in range(5): if comparisonGuess[i]==word[i]: print(f"{guess[i]} is in the word at position {i+1}. hooray") ctk.CTkLabel.place(self=None, text={guess[i]},x=...
skittles lover's user avatar
-7 votes
1 answer
76 views

This is a writeup of a problem that pussled me a bit. On pip install ipython I got an error "Defaulting to user installation because normal site-packages is not writeable". The error ...
Karsten Breivik's user avatar

15 30 50 per page
1
2 3 4 5
147158