Skip to main content

Questions tagged [python]

Python is an interpreted, general-purpose high-level programming language whose design philosophy emphasizes code readability. Use the python tag for all Python related questions. If you believe your question may be even more specific, you can include a version specific tag such as python-3.x.

7 votes
5 answers
238 views

Rudimentary black jack game implementation

I started the 100 Days of Code: The Complete Python Bootcamp about a week ago. I finished day 11, and I wrote a rudimentary blackjack game. I'm just looking for some advise on how I did. Am I showing ...
Wazeewa's user avatar
  • 71
0 votes
1 answer
33 views

Graph Neural Network (GNN) (2)

This is an implementation of a graph neural network. Edges are represented by an egde-list. ...
user366312's user avatar
0 votes
1 answer
71 views

Graph Neural Nwteork (GNN) (1)

The given datasets are graph data structure that represents social interactions. The nodes will be represented as People{node_id, edge, gender, occupation} and the ...
user366312's user avatar
2 votes
1 answer
182 views

Neural network text classifier

I wrote a simple NN text classifier to help me quickly sort through the new daily submissions to the arXiv. It downloads the new submissions, processings their titles and abstracts, trains a NN on ...
Gabriel's user avatar
  • 597
2 votes
1 answer
41 views

Fast API endpoint handlers

I'm not so experienced at developing Fast API apps. As I program in different languages, I often get confused as how things are done in a python way. I have this piece of code, and I would like to ...
Alejo Villores's user avatar
0 votes
1 answer
39 views

Feature-subset-selection using autoencoder [closed]

The following listing performs feature-subset-selection (not feature extraction) using an autoencoder. My aim is to select the best features from the 1000+ available features in the given dataset. I ...
user366312's user avatar
5 votes
2 answers
365 views

Cost sharing application in Python

I am very new to Python (yes, I know it's been around a long time). This is my first working just-for-fun project to see if I could do something in Python. I know the UI layout is rather ugly and ...
Zack E's user avatar
  • 593
1 vote
1 answer
41 views

Send a QNetworkRequest with a parameter

I want to send multiple QNetworkRequests in Python 3.12 that each downloads one image from a server, using a single callback function. To be able to distinguish ...
Neph's user avatar
  • 113
9 votes
1 answer
860 views

Typical password generator in Python

Password generators are extremely popular on CodeReview with beginners to both coding in general and Python in particular, for a number of reasons: They're (seemingly) easy to implement They offer an ...
6 votes
3 answers
1k views

Implementation of Euler-Maruyama numerical solver

I am trying to write a python implementation of Euler-Maruyama and Milstein schemes for numerically solving stochastic differential equations. The pseudo-code for the algorithms is in the Wikipedia ...
Quasar's user avatar
  • 397
3 votes
2 answers
89 views

SEO Page Analysis Tool built in Python and Django

Objective: Develop an SEO analysis tool, for a website built in Django, that allows users to input a URL and receive an SEO report containing information about the page's optimization strengths and ...
user3605767's user avatar
0 votes
1 answer
62 views

Replace iterrow loops in pandas matrices with something else to shorten the running time

This post is modified from this one: https://codereview.stackexchange.com/posts/292885/edit (Alternatives to iterrow loops in python pandas dataframes). I have a piece of code to calculate price ...
Laura's user avatar
  • 61
5 votes
2 answers
632 views

Alternatives to iterrow loops in python pandas dataframes

I have a piece of code to calculate price sensitivity based on the product and its rating. Below is the original data set with product type, reported year, customer’s rating, price per unit, and ...
Laura's user avatar
  • 61
2 votes
1 answer
118 views

Time Series Forecasting

I'm currently working on a project involving time series analysis and have written the following code for the train-test split section. I'm particularly concerned about the correctness of the ...
user avatar
-3 votes
1 answer
74 views

Initializing an object using a staticmethod

I've an object that looks like this, and users have been populating the attributes post-initialization, e.g. ...
alvas's user avatar
  • 699

15 30 50 per page
1
2 3 4 5
1036