2,208,932 questions
0
votes
0
answers
20
views
How to safely pass training argument to Keras layers in a dynamic list when I don’t know if each layer supports it?
I am building a custom Keras layer that consists of a list of sub-layers, but I don’t know ahead of time which layers accept a training argument (e.g., BatchNormalization does, ReLU does not).
Here’s ...
0
votes
0
answers
37
views
TextFSM parsing column-aligned CLI output where optional columns shift due to variable whitespace
I'm trying to parse output where the records are aligned via variable white space. Here is the output in question:
VLAN Table
VLAN VLAN Name Type Secure eth0 eth1 eth2 ...
-3
votes
1
answer
49
views
Propagating logging.logger from module to single log file
I have a python project with this structure:
Project-Root/
|-- script.py
|-- utils/
| |-- utils.py
| |-- init.py
My script.py looks like this - I import logging, setup an output file, import a ...
-4
votes
0
answers
70
views
issue with randint errors while trying to create a random key generator [closed]
I am currently trying to create a program to generate random one time use keys for fun, and am currently writing the code to generate random indices. However, I keep getting this error when trying to ...
-4
votes
0
answers
56
views
Which YouTube video properties get deleted if not specified in an update request?
I am using the YouTube Data API v3's Videos.update endpoint to update a video. My intention is to update the video title while leaving all other video information untouched. The documentation notes:
...
1
vote
1
answer
55
views
Python macro to enumerate only selected formulas in a LibreOffice Writer doc
I've written this LibreOffice Python macro, that prints (in ASPO terminal) the inner code of each "formula" (i.e. LibreOffice Math element included in LibreOffice Writer content) of my ...
-3
votes
1
answer
48
views
django model with foreign key onto settings.AUTH_USER_MODEL fails when app is incorporated into other app using postgres
I have a survey app that works fine as a standalone app with no complaints (using sqlite).
But when I incorporate the survey app into another that is using postgres as a database, it fails to run the ...
1
vote
1
answer
25
views
django model with foreign key onto settings.AUTH_USER_MODEL fails when app is incorporated into other app using postgres
I have a survey app that works fine as a standalone app with no complaints (using sqlite).
But when I incorporate the survey app into another that is using postgres as a database, it fails to run the ...
0
votes
0
answers
59
views
python-lz4: how to configure the number of threads?
I have Python script using Python binding lz4 of the original lz4:
import lz4.frame
import shutil
input_file = r"E:\Personal Projects\tmp\chunk_0.ndjson"
output_file = r"E:\Personal ...
-5
votes
0
answers
56
views
Creating a custom Thonny plugin to restrict features for students
I'm trying to create a plugin in Thonny to create a custom exercise mode for my students. They should be able to write the necessary code, run tests and send the results to my own server. This part ...
-1
votes
1
answer
42
views
OVR classification not working on MNIST dataset
I'm coding a classification model using OVR for the MNIST dataset, and then asking users to input images, which the model then predicts the class of. The model accuracy itself (on training and test ...
1
vote
2
answers
94
views
pandas last 3 weeks same day average in groups
I have a dataset with a column of groups, dates, day of the week and some data columns. For each date in each group, I want to work out the same day average from the last 3 weeks. I've been scratching ...
0
votes
1
answer
64
views
LLM inference returns non-deterministic output despite fixed seed and temperature during production runs [closed]
I’m developing a generative AI service using a large language model for text generation. During local testing and production runs, I noticed that inference results are not deterministic even when ...
0
votes
0
answers
38
views
Select the associated bill number or bill type
passing the payload below mentioned to the api https://www.zohoapis.com/books/v3/vendorcredits?organization_id=10234695 and getting error as
Status Code: 400 Response: {'code': 37034, 'message': '...
0
votes
0
answers
14
views
How to auto-scale point image markers when the window is resized?
I am using LightningChart Python and I am drawing a “body map” using a background image and multiple point-series markers that use custom images for chest, ankle and arm icons.
The background image ...