ModuleNotFoundError: No module named 'ray.tune.suggest'
I have installed ray, and I am trying to importfrom ray.tune.suggest.hyperopt import HyperOptSearchbut I keep receivingModuleNotFoundError: No module named 'ray.tune.suggest'I checked the documentation...
View ArticleExtremely slow Langchain WebBaseLoader in the Streamlit built app
I have a problem with Langchain WebBaseLoader in Streamlit. In the following control code, the webpage from the specified URL is read in 0.15 seconds.from langchain_community.document_loaders import...
View ArticleHow to use int(input()) in JupyterLite / Pyodide Kernel
I tried running the code below in Jupyter served online:term_no = input('Enter number of approximations to use: ')term_no = int(term_no)print(term_no)and it returns an error TypeError: int() argument...
View Articlepython for loop over different lists not to be equal shows incorrect output
This is my python code:statuses = [ {'id': '1', 'plan_id': '124124124', 'ip': '1.1.1.1', 'name': 'Saeed1', 'status': 'active'}, {'id': '2', 'plan_id': '124224124', 'ip': '2.2.2.2', 'name': 'Saeed2',...
View ArticleValueError: Error when checking input: expected flatten_input to have shape...
I'm fairly new to RL and i can't really understand why I'm getting this error.import randomimport numpy as npimport numpy as npfrom tensorflow.keras.models import Sequentialfrom tensorflow.keras.layers...
View ArticlePython workflow for Blender beginner
I have need to do some 3D fluid piping simulations, and I am seriously considering Blender.The last time I attempted to learn Blender (for another project), I found the UI difficult to use and slow to...
View ArticleWinError 2 The system cannot find the file specified [duplicate]
I am a python newbie and am trying to generate subtitles from mp4 files in python using whisper-timestamped library. I keep getting "[WinError 2] The system cannot find the file specified" when I try...
View Articlei need output in dictionary without using list,tuple,append
D={'name':'hello'}output = {'n':'hello','a':'hello','m':'hello','e':'hello'}need this output write a python code without using list,tuple,appendd = {'name': 'Hello'}output = {}for char in d['name']:...
View ArticlePython file.tell() giving strange numbers?
I am using Python 3.3.0, on windows 64bit. I have a text file as shown below: (see bottom for download link at mediafire)hello-data1:blah blah blah blah blah blah blah blah blah blah blah blah blah...
View Articleseeking url query parameters for a website
I was trying this search.py code base to scrape that website using url along with search_url. It produces results in json format - how was it achieved using the dev-tools?I can see that a request was...
View ArticleUnable to stack trained models with scickit learn 1.4.1.post1
I have four trained models. 2 VotingClassifier models and 2 StackingClassifier models. They are already trained and saved in joblib format. I can even load them and use them for prediction (in prod,...
View ArticleHow to move two servos at the same time using pyfirmata, python and Arduino
I am trying to program a robot arm and I need two servos to run at the same time and be able to run in different directions for example on going 90° to 180° and the other servo going 90° to 0° , I am...
View ArticleHow to propagate opentelemetry span context to http request headers in B3...
Our organization uses a few different tracing mechanisms. The prominent one is B3. But some services also use Datadog. For the purpose of this question, I am mainly concerned with B3.I dont want to...
View ArticleLooking for a simple method to re-grid spatial velocity data (vector...
I'm trying to regrid vector component data (u and v representing positive x and y) on an EASE coordinate system to East and West components on a latitude longitude coordinate system. The vector...
View ArticleDATA loading and joinong, calculations time delay in poatgres and polars
I'm facing an issue with the loading time of data from PostgreSQL to python Polars. I have 7 tables. two tables have size of 1.5 gb and others around 500 mb. I load the table into various polars data...
View Article'DataFrame' object has no attribute 'courier_name' - follows a split
I'm attempting to build a series of tables using Python and mariaDB. Everything runs properly up until the point where I try to insert data into the "couriers" table. The couriers table has these...
View ArticlePython method chaining in a for loop [duplicate]
I have a list of html tags defined as below:tags = ["text1", "text2", "text3"]I will need to use theses values in a method chaining as shown below:soup.find("div", class_="text1").find("div",...
View ArticleHow do I use Astropy to transform coordinates from J2000 to Lat, Lon, and...
I've followed the instructions from questions present on this site pertaining to this issue, but the code all seems off. For one thing, the altitude seems far too low, and it doesn't appear that the...
View ArticleAm I missing any parameters using search_code() of PyGitHub?
I want to search GitHub for codes that include a specific keyword. Using Python, I'm trying to use PyGithub with search_code(), but it is not retrieving anything, am I missing any parameter for the...
View ArticleSolving systems of linear equations in Python
What is the most computationally efficient method to solve large systems of linear equations of the form Ax = b?In my current approach, I'm using scipy.linalg.lu_factor and scipy.linalg.lu_solve, but...
View Article