Skip to main content

Questions tagged [artificial-intelligence]

Artifical Intelligence in the field of computer science is the study, design and engineering of intelligent systems able to perceive their environment and take actions to optimize their chance of success in achieving a goal.

Filter by
Sorted by
Tagged with
-2 votes
1 answer
235 views

Are there good practices or even conventions to store LLM prompts I use while coding?

I sometimes use some language model assistance (e.g., GPT-4o) while coding. I'd like to save somewhere the prompts and language model versions I used. Are there good practices or even conventions to ...
Franck Dernoncourt's user avatar
-2 votes
2 answers
106 views

Identifying the minimal set of columns that can be used to define a unique instance in a database table

Some context here: I am developing a comparison tool that coalesces, formats and concatenates all column values for the individual rows in a table. This single string is further reduced in size by ...
Lauren_G's user avatar
2 votes
2 answers
167 views

Best-first search on a graph

I am working through an example of best-first search on a graph, and I'm having some trouble understanding exactly what the process should be. This is the graph I have: The heuristic values are in ...
Gerhardus Carinus's user avatar
22 votes
4 answers
6k views

How do AI developers for LLM fix bugs when the LLM misbehaves, given that they cannot control what the LLM learns from the data?

The traditional non AI software with if-then-else and loop statements can be fully controlled. In contrast, machine learning software behaviour is unpredictable since the developer cannot control what ...
curious's user avatar
  • 331
0 votes
1 answer
109 views

API for a statefull AI server

I'm designing a web application for image analysis using AI. My API for CRUD operations is written in Django. Now I want to add the AI functionality which loads the model once on the startup, receives ...
Karol Borkowski's user avatar
1 vote
1 answer
757 views

Is it OK to commit code written by a large model such as ChatGPT or Github Copilot? [closed]

Question inspired by a similar question in Academia.SE: Is it OK to generate parts of a research paper using a large language model such as ChatGPT? I've always been very sceptical about AI code ...
gaazkam's user avatar
  • 4,479
-2 votes
1 answer
173 views

Is it possible to predict last 3 digits of a closing stock price? [closed]

So, i just start learning in AI field and i want to develop my skill more. So, i just curious is it possible to predict last 3 digits of a closing stock price? which mean the output result will run ...
Issara Ghfdyhgchj's user avatar
0 votes
0 answers
93 views

pruning tree search in multiplayer zero-sum games with loss conditions

I'm trying to write a program to play a simple multiplayer (it's safe to assume less than 10 players) game where each player has a number of resources. Every turn the players make decisions that ...
DutChen18's user avatar
  • 117
5 votes
0 answers
653 views

How to OCR and/or recreate lines of Egyptian Hieroglyphs in Unicode/HTML?

I am wondering how to take these Hieroglyphs and make them into Unicode. I read through the Tesseract docs on how to create training data, but it seems largely tailored toward "traditional" ...
Lance's user avatar
  • 2,615
3 votes
1 answer
212 views

How to guess which pieces of text belong to which lines in a scanned document?

I want to be able to analyze a five-years archive of supermarket receipts. The receipts are scanned, and thanks to Google Cloud Vision API, the result of an OCR is available. Google's API, however, ...
Arseni Mourzenko's user avatar
-3 votes
3 answers
777 views

How would someone record GPU image output?

I notice the GPU, like latest Nvidia/AMD cards, have an output that goes to your monitor but I want to know if we can also use that GPU output feed into some kind of image recorder HARDWARE? If yes, ...
thundergawd's user avatar
2 votes
3 answers
254 views

Move the onscreen circle when camera moves

I have a script that accesses my webcam and displays the captured video on the screen. I can also very easily draw a circle (a rectangle, it doesn't matter) over the video. When I move the camera ...
Lorenzo Villani's user avatar
5 votes
1 answer
966 views

What do I not understand about Alpha-Beta-Pruning in Chess?

I'm trying to write a chess engine, Min-Maxing works. Now I wanted to implement Alpha-Beta-Pruning, but despite reading about it and watching videos, I must have a severe misunderstanding somewhere. ...
Robert Tausig's user avatar
-2 votes
1 answer
222 views

Is there a way to get rid of loop for layers in a neural network

I have being learning about deep neural networks and how the increase in hidden layers give better results. but the problem that i found was we usually get rid of loops in calculations by using ...
Sachith Rukshan's user avatar
6 votes
4 answers
741 views

Improved design for a turn-based multiplayer game using AI?

I'm trying to decide which is the best architecture for a turn-based multiplayer game where the players can be either humans or AI and the UI is optional, for instance because the game can just be ...
heapOverflow's user avatar
2 votes
1 answer
2k views

Clustering Algorithm with max number of clusters

I'm looking for a clustering algorithm (ideally density based) that allows me to specify the maximum number of clusters (but not the exact number). All points must be assigned to a cluster, so I can't ...
Yair Halberstadt's user avatar
-1 votes
1 answer
74 views

What kind of of tools/architecture would work well for a student team competing in a robot soccer competition?

The scenario is as follows. There is a PC running a complex piece of AI software wirelessly controlling a number of soccer robots. This software is written and maintained by a team of students that ...
Pepijn's user avatar
  • 337
3 votes
2 answers
592 views

Is manually tagging content an ideal start for eventual machine learning?

I'm putting together a mobile app that would allow users to search, rate, and upload photos of dishes at restaurants. I have no machine learning experience (just FE/BE/Mobile) so for the time being I ...
Carl Edwards's user avatar
3 votes
1 answer
4k views

Distinction between AI, ML, Neural Networks, Deep learning and Data mining

I have recently started exploring the field of machine learning (ML). I think I understand the difference between ML and AI at high level, but I wanted to understand more accurately the differences ...
user3222249's user avatar
1 vote
0 answers
118 views

Can machine learning be used for non-numerical prediction?

I've started reading a machine learning book since a few days ago, and I've learned about how it can be used for classification/regression/etc. However, I am unsure if it will be able to handle the ...
James Ko's user avatar
  • 358
3 votes
1 answer
289 views

Fitness Function altenatives in Genetic Algorithms for game AI

I have created a Gomoku(5 in a row) AI using Alpha-Beta Pruning. It makes move on a not-so-stupid level. First let me describe the grading function of the Alpha-Beta algorithm. When it receives a ...
Dashadower's user avatar
0 votes
2 answers
318 views

(AI) algorithm to optimize input parameters

Background information I am building a program that plays checkers as good as possible. It already plays pretty well but the goal is to improve it even more. This can be done by adding new methods to ...
Stan Callewaert's user avatar
0 votes
1 answer
312 views

How do you evolve a neural network?

I've read about NEAT/Evolutionary Artificial Neural Networks/Genetic Algorithms. I understand the concept of choosing the fittest neural networks and breeding them to produce another one, but how ...
Tobi's user avatar
  • 220
3 votes
5 answers
908 views

What programming paradigm do you think would work best for the AI aspect of a chess engine?

I wish to write a chess AI which simulates the way I think over the board, using C++. My focus is on writing the algorithms for choosing moves (decision making), not defining the board and pieces. To ...
Seeking_Truth's user avatar
-6 votes
4 answers
381 views

AI Language that doesn't release source code or can't be decompiled

I looked at using python for the AI in a security application for hobby-business but apparently you either release it as source code or it can be easily decompiled. Of the new machine learning ...
WaterKnight's user avatar
0 votes
1 answer
277 views

How to design an AI For Sorry?

Context: I'm working on a Windows console version of the board game Sorry. In Sorry, each player has four pawns. Based on drawn cards, a player moves their pawns around the board. These moves can ...
Craig's user avatar
  • 473
2 votes
1 answer
418 views

Monte Carlo Tree Search in Game AI

I am very confused in implementing MCTS for a connect 5 game. According to Wikipedia: Selection: start from root R and select successive child nodes down to a leaf node L. Lets say it's the AI's ...
Dashadower's user avatar
2 votes
1 answer
246 views

Is handwriting OCR more accurate if the author of the handwriting is indicated?

Question When training and using an OCR algorithm for handwriting recognition, is it helpful to indicate the author of the handwriting? Use Case Have a warehouse full of documents that need to be ...
Chris Dutrow's user avatar
4 votes
1 answer
516 views

Double neural network architecture for starcraft AI programming endeavour

Please take a look at this AI system architecture proposal: As you can see this is a multi-agent AI system for starcraft brood war that utilizes BWAPI AI framework, and I proposed this idea for the ...
Nylithius's user avatar
1 vote
0 answers
626 views

Are there any rule-based programming language that are not considered production systems?

I am trying to learn the difference between a production system and a rule-based system because it seems to me that they are the same thing basically. I know that both refer to programs (system) that ...
yoyo_fun's user avatar
  • 2,297
1 vote
1 answer
503 views

When implementing Monte Carlo Tree Search for TicTacToe, do I simulate won states?

I'm trying to debug my MCTS implementation for TicTacToe (it doesn't block obvious wins for the opponent). I was wondering what the algorithm should do if it expands to a node which is a game over ...
Amja's user avatar
  • 113
1 vote
1 answer
111 views

How to analyse user input and determine if it (kind of) matches an answer

I'm working on a quiz system that will allow users to enter text as an answer. The question could be something simple to start with, looking for a short phrase, or a select few words as the "correct" ...
simonw16's user avatar
  • 133
2 votes
3 answers
3k views

Building a simple AI for Noughts & Crosses game

I'm developing a simple noughts & crosses game where the player plays against the computer. Obviously, I use the Randomize function of the language, however, the final stage of refinement is to ...
user3396486's user avatar
0 votes
1 answer
863 views

How to run 2-layer perceptron to solve XOR

XOR is not solvable by using a single perceptron with standard scalar product and unit step function. This article suggests using 3 perceptron to make a network: http://toritris.weebly.com/perceptron-...
Dan D.'s user avatar
  • 103
6 votes
2 answers
12k views

What is identity mapping in neural networks

I came across the term identity mapping in some papers about neural networks but am not sure what it is supposed to mean in that context. I'm guessing it means to map a sort of input to an output? I ...
tt_Gantz's user avatar
  • 171
2 votes
0 answers
884 views

Programming a good puzzle game (Puyo Puyo) AI

I'm trying to build a strong AI for a game called Puyo Puyo, in Matlab (I know... but it's the only language I know well). Basically it's like Tetris but you get falling pairs of 2 puyos (blobs) of ...
BrouH's user avatar
  • 29
-1 votes
2 answers
2k views

Normal Form in Artificial Intelligence

Why do we use normal form(like Conjuctive Normal Form and Disjunctive Normal Form) in Artificial intelligence?What is the specific purpose of Making a sentence in Normal Forms?
Roshan Budhathoki's user avatar
1 vote
5 answers
1k views

Machine learning without programming?

I am old to programming and very beginner to Machine Learning and what make me surprise is the defination as i typed in google i found this. Machine learning is a type of artificial intelligence (...
Muhammad Faizan Khan's user avatar
2 votes
2 answers
2k views

How to create an efficient implementation of a dictionary of synonyms?

How do I create a dictionary of synonyms that is efficient in terms of retrieving synonyms of a word? Basically, I want to use some sorts of data storage to store groups of words, and enable an end-...
confused00's user avatar
8 votes
4 answers
239 views

Choosing a sequence of animations for an NPC - use a behaviour tree?

I am implementing an NPC to walk around a virtual space, specifically a cat. I have a series of short animation clips (3-5 seconds). My first instinct was just to choose a random animation when the ...
starfish's user avatar
  • 392
2 votes
1 answer
618 views

Getting started with machine learning a zero sum game?

I have a simple zero sum, discrete, deterministic, complete information board game. I want to machine learn an evaluation function for an AI agent. Suppose each board state has ~20 identifiable ...
Brendan Hill's user avatar
3 votes
2 answers
218 views

Neural networks: No solutions for test data possible?

So there are two ways of teaching a neural network as far as I am aware of. You supply the AI with test data and the correct solution to the problem. After some time the network will be able to get ...
Post Self's user avatar
  • 297
3 votes
1 answer
5k views

Vector input for Artificial Neural Network?

My problem is fairly complex, so here is a similar, simplified example. Let's say you wanted to predict the Miles Per Gallon (fuel consumption) of a car, based on the following information: you have ...
Kyle's user avatar
  • 37
3 votes
2 answers
2k views

Class diagrams and frames

UML class diagrams (1st pic) and frames (which belong to knowledge representation and artificial intelligence) (2nd pic) look pretty alike. But do class diagrams exactly type of frames or they just ...
AivanF.'s user avatar
  • 191
1 vote
2 answers
2k views

Algorithm for finding all empty tiles in rectangular grid?

I have a rectangular grid of square tiles, some of which are blocked/filled. I start at a random tile inside the grid with the blocked tiles, randomly placed. I can turn in 90° steps and check whether ...
user219317's user avatar
17 votes
2 answers
703 views

How to find hard to misspell given names?

Here is a question that I believe could be solved with some data mining and a sophisticated algorithm, but I don't quite know how. Any pointers as to what data sources to use and what algorithm to ...
user1202136's user avatar
4 votes
1 answer
2k views

Best approach to implement multiple levels of difficulty to a minimax AI [closed]

I'm programming a game (turned base, in a grid) for which I implemented an AI using the minimax algorithm (with alpha-beta prunning). It's all fine and working, but the AI is too good and I can't win ...
Phil-R's user avatar
  • 214
4 votes
3 answers
650 views

Clustering algorithm based on distance

So, I have a packaging center A. And I have n points scattered around A. Let's call them i1, i2 ... in. I have a maximum distance threshold, called D. My task is to break those n points into groups ...
Sandeep Verma's user avatar
2 votes
1 answer
100 views

To what values should you initialize the neurons and connection strengths in a neural network?

The values of all of the neurons in my neural network are initialized to 0 and the connection strengths between the neurons are set to randomly generated floats, between 0 and 1. I have seen other ...
kurofune's user avatar
  • 290
3 votes
1 answer
173 views

How can you write an activation function in a neural network to handle a layer architecture of arbitrary dimensions?

I am making a neural network in Clojure that can take an array of integers,and return a data structure representing the layers of a neural network: so (make-layers [1 4 5]) would evaluate to: [[0] ...
kurofune's user avatar
  • 290