Investigating discrepancies in TensorFlow and PyTorch performance
In my pursuit of mastering PyTorch neural networks, I've attempted to replicate an existing TensorFlow architecture. However, I've encountered a significant performance gap. While TensorFlow achieves...
View ArticleHow to send Discord embed with background image and user avatar/info
I'm fairly new to making discord bots using python, and I'm trying to copy a feature i saw on some bots. one of them is this:A discord embed with an image background and user avatar in the middle and...
View ArticleHow to permanently install Rapids on Google colab?
Is there a way to install Rapids permanently on Google colab? I tried many solutions given on StackOverflow and other websites but nothing is working. This is a very big library and it is very...
View ArticleIs there a way to use tcl to customize and isolate selected atoms in VMD?
I am attempting to write a script that isolates beads of a certain name and adjusts their draw style before running the trajectory animation and taking a snapshot of the final configuration. the...
View ArticleIssue in Installing NVIDIA Rapids on Google Colab
I'm trying to install NVIDIA Rapids on Google Colab's Tesla P-100CE using the below provided by NVIDIA.# Installing RAPIDS API.# NOTE : This may take some few minutes to install.!git clone...
View ArticleRAPIDS, CUML on google colab
I'm installing RAPIDS on google colab pro but it takes a lot of time, last 2 instalations took over an hour instead of about 15 minutes as said during instalation "Starting the RAPIDS install on Colab....
View ArticleCan I convert a setup.cfg file to a pyproject.toml?
A senior developer taught me how to use a config file (with extension .cfg) to install a local python project with the command pip install -e <project path>.How to convert this file to...
View ArticlePython - Reddit (Clickable Button)
I want to make in selenium python script to click Upvote under a post.driver.find_element(By.XPATH, '//*[@id="t3_1crzl6x"]//div[2]/span/span/button[1]').click()But so far what i understand whenever u...
View ArticlePython & MS Project Interaction error after x amount of lines
Iterating through each line from the excel file I created, I constantly get the same error at line 2555 of the excel spreadsheet. Even added text formatting. Was able to copy and paste the data...
View Articlesplitting a list of an input into seperate words
I need input to be put into separate words in a list.What I have right now:lines = []last_line = []while True: cmd = input("-") if cmd == "del": print("~deleted") last_line.clear() elif cmd == "line":...
View ArticleNeed help in getting the logic to be included in python sample code
Need help in logic :I have got two df1 and df2 which has a field key contains multiple rows)if the key match in both data frames then I need to calculate the field Qualified.Qualified =CASE WHEN...
View Articlexpath not found with selenium
using a selenium python script and when i try click the xpath."" //*[@id="entry"]/div/div[2]/div[2]/form/div[1]/div/div/input ""with my script it says it cant locate the element, the input field is...
View ArticleFlask upload: How to get file name?
A client is sending files with arbitrary names. I am handling the request with the following implementation.@app.route('/', methods=['GET', 'POST']) def upload_file(): if request.method == 'POST': #...
View ArticleHow to do matrix multiplication under numpy in higher dimensions?
Under numpy I want to perform a "usual" matrix multiplication like this:C=A*BwhereA is a "2D-kind" Matrix, but each matrix element has shape (1,5)andB is a "1D-kind" Vector, but each vector element...
View ArticleDiscord.Py Cogs And Slash Command
I'm trying to make a bot with moderation cog file. Firstly I added ban and unban but it is not working.my files look like. I think files are in correct positions.Main command:import discordfrom...
View ArticleGetting captured group in one line
There is a known "pattern" to get the captured group value or an empty string if no match:match = re.search('regex', 'text')if match: value = match.group(1)else: value = ""or:match = re.search('regex',...
View ArticleConfidence interval for the difference between two proportions in Python
For example, in an AB test the A population could have 1000 data points, of which 100 are successes. While B could have 2000 data points and 220 successes. This gives A a success proportion of 0.1 and...
View ArticleFluent pattern with async methods
This class has async and sync methods (i.e. isHuman):class Character: def isHuman(self) -> Self: if self.human: return self raise Exception(f'{self.name} is not human') async def hasJob(self) ->...
View ArticleEdit klipper host software for different use than 3D printing
I want to use the benefits of the klipper3d software.https://www.klipper3d.org/Code_Overview.htmlhttps://github.com/Klipper3dI'm using a Manta m8p board with TMC2209.I do not have a 3D printer, so...
View ArticleHow to document passing and returning date objects in Python as parameter...
I'm working on a Python project where I'm handling dates, and I'd like to understand how to properly document functions or methods that accept and return date objects using datetime.date or date from...
View Article