2,209,138 questions
0
votes
0
answers
11
views
how to compare statistical difference between graphs in NetworkX
I have a number of graphs in NetworkX, obtained by microscopic images by NEFI https://nefi.mpi-inf.mpg.de/.
Since they're from real images, the graphs nodes are always slightly displaced from one ...
0
votes
1
answer
21
views
Crop extra white-space on matplotlib picture
I made a "gauge" image using the following code:
taux = 91
# Plot
fig, ax = plt.subplots(figsize=(7.5,5), subplot_kw=dict(polar=True))
ax.set_theta_zero_location("W") ...
0
votes
0
answers
14
views
How do I set the Run play button into a Run and Debug play button with a bug in VSC, Python
My basic question is how do I get my Run play button, AKA this:
just-a-play-button (this is on my newest project)
To become Run and Debug button, AKA this:
play-button-with-bug (this is on my previous ...
0
votes
1
answer
17
views
Automatically trend detection in time-series-data
I won’t to automatically detect a trend in time series data.
The data is noisy but stationary and univariate.
I have old data and I am getting continuously new data that has to be analysed.
The ...
0
votes
0
answers
22
views
Pixel values differ between Python and Android Kotlin when computing MobileNetV3 embeddings, causing mismatched results
I’m having an issue with MobileNetV3 image embeddings:
I compute embeddings for original images in Python and store them in a database.
On Android Kotlin, when a user uploads an image, I also compute ...
0
votes
0
answers
30
views
Optimize code to flatten meta ads metrics data in spark
I have two spark scripts, first as a bronze script need to data form kafka topics each topic have ads platform data ( tiktok_insights, meta_insights, google_insights ). Structure are same,
( id, ...
-1
votes
0
answers
33
views
Check Filesize Function Always Returns True [duplicate]
I'm trying to get this function to return False if the file size is 0 (file is empty) or True if filesize is greater than 0 (file is not empty) but it always returns True. What am I doing wrong here?
...
0
votes
0
answers
23
views
Pyvistaqt BackgroundPlotter generates no window on macOS
I tried to run the following minimal working example using pyvistaqt on MacBook Pro M4 Pro with macOS Sequoia 15.6
from pyvistaqt import BackgroundPlotter
import pyvista as pv
import os
os.environ[&...
1
vote
0
answers
22
views
How to transfer_to_agent when escalate in a LoopAgent
# Does LoopAgent return control to parent after escalate in Google ADK?
I'm using Google ADK with this structure:
root_agent (LlmAgent)
└── loop (LoopAgent)
├── generator
├── critic
└── status_checker ...
1
vote
0
answers
57
views
Is my JAX implementation of continuous wavelet transform correct?
I would like to implement continuous wavelet transform (CWT) using JAX. According to ChatGPT, it is in practice computed by performing a discrete convolution with a sampled wavelet function at ...
-4
votes
0
answers
25
views
File won't save when I click the X pygame [duplicate]
In my code pasted below, I try to save the new level status(what level the player is on) in stats.txt. When I read the text file after saving it in the code, the file has the correct value. But when I ...
-4
votes
1
answer
122
views
File wont save python [closed]
In my code pasted below, I try to save the new level status(what level the player is on) in stats.txt. When I read the text file after saving it in the code, the file has the correct value. But when I ...
-1
votes
0
answers
86
views
Why is my topological sort output unstable, and do I need to use a class for this?
I am a beginner learning topological sort in Python.
I implemented a simple version of Kahn’s algorithm using a dictionary to represent a DAG and a function to perform the sort.
The code runs without ...
0
votes
1
answer
56
views
Why does DeepEval GEval return 0–1 float when rubrics use 0–10 integers?
Using GEval with a rubric defined on a 0–10 integer scale.
However, metric.score always returns a float between 0 and 1.
Docs say all DeepEval metrics return normalized scores, but this is confusing ...
-3
votes
1
answer
75
views
This block keeps returning "AttributeError: module 'Answer' has no attribute 'factorial'" but works. Why am I getting an error? [closed]
class Answer:
def __init__(self, n):
self.n = n
def factorial(self):
# n = self
if isinstance(self, str):
pass
else:
factVal = 1
...