Skip to main content

Stack Exchange Network

Stack Exchange network consists of 183 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [ai]

Artificial intelligence (AI) is the branch of computer science and technology that studies the development of machines able to simulate aspects of human intelligence.

Filter by
Sorted by
Tagged with
6 votes
1 answer
502 views

Creating a fast connect 4 ai solver in JavaScript

I’ve implemented a Connect 4 AI in JavaScript using a Negamax search. My goal is to solve the game completely from the starting position (depth 42). I’m trying to make it as fast as possible and would ...
eligolf's user avatar
  • 199
0 votes
0 answers
93 views

Negamax Implementation for Unity Hnefatafl Game

I've been banging my head against the AI for a Hnefatafl game I'm making (pronounced NEF-a-taf-full, otherwise known as Tablut) for quite a while now. It's caused me no end of frustration, though I ...
ModiMagnus's user avatar
4 votes
1 answer
795 views

Using AI agent to solve the N-puzzle

I have just written this code here. The code is about creating a (local LLM based) AI agent to solve the N puzzle. I should stress that I am the one who wrote the code, and I did not use AI to write ...
Dang Manh Truong's user avatar
5 votes
2 answers
99 views

Simple Word-Based Text Truncator

I created a Python 3.11 utility that truncates an input string to a fixed word count—splitting on any whitespace, collapsing runs, and dropping trailing stop-words—so you get clean, concise snippets ...
Bob's user avatar
  • 221
2 votes
3 answers
116 views

Splitting input text into fixed-size overlapping word chunks

I’ve implemented a small utility function in Python 3.11 that takes an input string, splits it into word-based chunks of a given size, and allows a specified overlap between consecutive chunks. This ...
Bob's user avatar
  • 221
4 votes
1 answer
395 views

Machine Learning Model to Predict the Type of Variable Star from Light Curve

I've created this machine learning model that predicts the type of variable star based on the light curve. A variable star is a type of star whose luminosity changes over time. My model predicts ...
Astrovis's user avatar
  • 161
1 vote
1 answer
175 views

A web page for running AI vs. AI Connect Four matches with selection of algorithms and search depths

This time, I have prepared this page where a user may select what AI bots will be run in the game of Connect Four. The entire repository is here. Code index.html: <...
coderodde's user avatar
  • 31.8k
1 vote
1 answer
79 views

Negamax AI for playing Connect Four against Alpha-beta pruning AI in Javascript

The working page is in GitHub. Introduction This time, I have two AI bots playing Connect Four against each other. The first AI bot uses Alpha-beta pruning, and the other one uses a Negamax with Alpha-...
coderodde's user avatar
  • 31.8k
4 votes
0 answers
58 views

Connect Four AI vs. AI match in Javascript

This time, I have a Javascript program that runs a Connect Four match between two Alpha-beta pruning based AI bots. (See this page.) ai-battle.html: ...
coderodde's user avatar
  • 31.8k
5 votes
2 answers
354 views

Simple version of NEAT

I have wrote my own simple version of NEAT and want to improve the code for mainly performance (training and runtime of a generation). This simple version of NEAT aims to perform somewhere near as ...
coder's user avatar
  • 235
2 votes
1 answer
53 views

One-layer linear neural network to solve a regression problem in PyTorch

Good morning everyone, I am trying to figure out how deep learning works. My approach is mainly theoretical but I have decided to code a few deep learning projects to get a better feel of the kind of ...
francescoriccardocrescenzi's user avatar
2 votes
1 answer
83 views

A simple word embedder only using jax

How can this code be improved? I'm a novice programmer trying to learn ml by doing it from scratch. This code is part of a transformer model that I'm working on. Do you have any ideas about how to ...
T3st's user avatar
  • 21
4 votes
1 answer
300 views

GUI Tic Tac Toe game with UNBEATABLE AI players

This is an updated version of my Tic Tac Toe game with AI players, it is related to GUI Tic-Tac-Toe game with six AI players - part 1: the UI. But that question is more than two weeks old and no one ...
Ξένη Γήινος's user avatar
2 votes
1 answer
120 views

Search Stack Overflow and GitHub for code in a specified language

This code is designed to scrape Stack Overflow and GitHub, pulling information based on a user-specified programming language and processing the data into a format for AI learning. It uses a number of ...
Robert3737's user avatar
1 vote
0 answers
70 views

Improving AI model for categorical outcome predictions

I am a novice and would appreciate some guidance. I have been trying to create a machine learning code that will correlatate 10+ binary variable and maybe a couple continuous variables to a binary ( ...
Parker Car's user avatar

15 30 50 per page
1
2 3 4 5
15
Morty Proxy This is a proxified and sanitized view of the page, visit original site.