Questions tagged [ai-design]

For questions related to the design of AI agents, algorithms, or models. If your question is about designing neural networks, reward functions, or fitness functions, you can use the associated more specific tags "neural-network-design", "reward-design" and "fitness-design", respectively.

Filter by
Sorted by
Tagged with
6 votes
2 answers
100 views

Two data classes for a convolutional neural network, can one have a LOT more images for training than the other?

I have two classes in the training set: one that has images with a feature and the other of images without that feature. Can there be a LOT more images with "no feature" so I can fit in all possible ...
6 votes
2 answers
229 views

Given two neural networks that compute two functions $f(x)$ and $g(x)$, how can I create a neural network that computes $f(x)g(x)$?

I have two functions $f(x)$ and $g(x)$, and each of them can be computed with a neural network $\phi_f$ and $\phi_g$. My question is, how can I write a neural net for $f(x)g(x)$? So, for example, if $...
1 vote
1 answer
91 views

Choosing an AI method to recreate a given binary 2D image

If the title wan not very clear, I want a method to take an input image like this, [[0, 0, 0, 0], [1, 1, 1, 0], [1, 1, 1, 0], [0, 1, 1, 0]] and output the 2D ...
1 vote
0 answers
42 views

How can one be sure that a particular neural network architecture would work?

Traditionally, when working with tabular data, one can be sure(or at least know) that a model works because the included features could explain a target variable, say "Price of a ticket" ...
1 vote
0 answers
49 views

Can text-independent writer identification be done without multi-sentence training datasets for each writer?

I am trying to learn more about text-independent writer identification and was hoping for some advice. I have a folder with 100k images, each of them with a different handwritten sentence. All of the ...
2 votes
0 answers
55 views

How can I formulate a prediction problem (given labeled data) as an RL problem and solve it with Q-learning?

One of my friends sent me a problem he was working on lately, and I couldn't help but I wonder how could it be solved using Q-learning. The statement is as follows: Given the following datasets, the ...
1 vote
0 answers
37 views

How to design a graph neural network to predict the forces in truss elements of a space frame?

I am trying to create a Graph NN that will be able to predict the forces in truss elements of a space frame. The input for the NN will be a graph, where the nodes represent the nodes of the spaceframe....
3 votes
1 answer
138 views

Can we create a conscious agent by having two units: one rational and the other conscious?

Suppose we create two units (or programs) that run in parallel and we label them as a cognitive unit and the conscious cognitive unit. A human has two units analogously. A rational analyzer and not ...
1 vote
0 answers
21 views

How to autocorelate multiple variants of same text into one?

I want to improve quality of translations for open-source projects in Ukrainian language. We have multiple translations from different authors. We can also translate messages using machine ...
1 vote
0 answers
963 views

How to compare SegNet, U-Net and EfficientNet?

SegNet and U-Net are created for segmentation problem and EfficientNet is created for classification problem. I have a task and it is saying that train these models on the same dataset and compare ...
2 votes
1 answer
1k views

How to train a reinforcement learning agent from raw pixels?

How would you train a reinforcement learning agent from raw pixels? For example, if you have 3 stacked images to sense motion, then how would you pass them to neural networks to output Q-learning ...
3 votes
1 answer
363 views

What should the action space for the card game Crib be?

I'm working on creating an environment for a card game, which the agent chooses to discard certain cards in the first phase of the game, and uses the remaining cards to play with. (The game is Crib if ...
10 votes
5 answers
8k views

How do I keep track of already visited states in breadth-first search?

I was trying to implement the breadth-first search (BFS) algorithm for the sliding blocks puzzle (number type). Now, the main thing I noticed is that, if you have a $4 \times 4$ board, the number of ...
2 votes
1 answer
76 views

Which predictive algorithm is most appropriate for a proceeding situation?

I'm new to artificial intelligence. I am looking for the most appropriate AI solution for my application, which is developing an algorithm to predict a proceeding situation (edited: I want my ...
0 votes
1 answer
116 views

How to add more than 1 agent in one generation with Q Learning

Sometimes the agent learns a bit slow and you want to have multiple agents in one generation. And at each episode you'll draw on the screen only the best of them or all of them. How is that possible? ...
1 vote
1 answer
664 views

How can I model and solve the Knight Tour problem with reinforcement learning?

I've read about the Knight Tour problem. And I wanted to try to solve it with a reinforcement learning algorithm with OpenAI's gym. So, I want to make a bot that can move on the chess table like the ...
2 votes
1 answer
193 views

How should I encode the input which are 5 cards from a deck of 52 cards?

How should I design my input layer for the following classification problem? Input: 5 cards (from a deck of 52 cards) in a card game; Output: some classification using a neural network How should I ...
3 votes
1 answer
84 views

Is there a way that helps me to architect my CNN fundamentally before training?

While we train a CNN model we often experiment with the number of filters, the number of convolutional layers, FC layers, filter size, sometimes stride, activation function, etc. More often than not ...
4 votes
2 answers
96 views

How can I design an AI that knows when its being spoken to?

I am trying to make an intelligent agent similar to Jarvis from Iron Man, but much less complex. However, I want my AI to be able to determine if I am talking to it or not. So, I plan on having it ...
3 votes
1 answer
202 views

How can I make ELIZA more realistic?

I’ve coded a simple ELIZA chatbot for a high school coding competition. The chatbot is part of an app that’s designed to help its user cope with depression, anxiety, and similar mental health ...
2 votes
0 answers
40 views

Is there an online RL algorithm that receives as input a camera frame and produces an action as output?

I want to build a reinforcement learning model, which takes a camera picture as input, that learns online (in terms of machine learning). Based on the position of an object on the camera, I want the ...
1 vote
1 answer
119 views

How many layers and neurons on the layers does a neural network need for for sales prediction?

The inputs (features) and expected output for my ANN are these: Input 1: Product id (number, cast to double) Input 2: Year in the past (1900..2017, cast to double) Input 3: Month of year (1..12, cast ...
3 votes
1 answer
197 views

How does one even begin to mathematically model an AI algorithm?

How does one even begin to mathematically model an AI algorithm, like alpha-beta pruning or even its thousands of variations, to determine which variation is best?
2 votes
0 answers
850 views

Wooden railway search problem AI

I have this problem. A basic wooden railway set contains the pieces shown in Figure 3.32. The task is to connect these pieces into a railway that has no overlapping tracks and no loose ends where a ...
1 vote
1 answer
66 views

What AI conferences in Europe should I consider submitting papers to explaining the ongoing work on RefPerSys?

https://afia.asso.fr/journee-hommage-j-pitrat/ is a seminar on March 6th, 2020, in Paris (France, European Union), in honor of the late Jacques Pitrat, who advocated during all his professional life a ...
2 votes
0 answers
303 views

Which activation functions should I use for polynomial regression?

I am a beginner in machine learning and neural networks. I have only used neural networks for classification problems. My aim is to modify it so that it can work for polynomial regression as well. In ...
1 vote
0 answers
158 views

Can SqueezeNet be used for regression?

I want a model that outputs the pixel coordinates of the tip of my forefinger, and whether it's touching something or not. Those would be 3 output neurons: 2 for the X-Y coordinates and 1, with a ...
1 vote
0 answers
58 views

Automating browser actions using AI

I am at a very initial stage of my research so I will try to describe what I am trying to achieve: I want to create an AI model which learns how to navigate the browser's component like clicking or ...
1 vote
0 answers
22 views

How can I design a system that suggests physical exercises to a person while keeping into account the fatigue?

I want to create an exercise suggester. Each day either has a routine or is a rest day. A routine has 4 slots. For each slot we select an exercise. We constrain the legal exercises, only do upper-body ...
2 votes
1 answer
53 views

What are the best classifiers for this type of data?

I would like to classify a dataset Credit Scoring, which is composed of 21 attributes, some of them are numeric and others are boolean. For the output, I want to know if they have a good or bad ...
1 vote
0 answers
43 views

How can I approximate a function that determines the priority of objects?

I am facing the following supervised learning problem: An object is fully characterized by its position in $R^n$. There are $m$ objects. There are fully observable (i.e. their positions are always ...
1 vote
0 answers
31 views

How do we determine the membership functions and values for this problem?

The goal of our project is to identify the quality of a grain and we have two values, A and B. ...
5 votes
2 answers
1k views

Should the prediction of the body temperature given a camera image be modelled as classification or regression?

I am fairly new to deep learning in general and I am currently facing a problem I want to solve using neural networks and I am unsure if it is a classification or regression problem. I am aware that ...
1 vote
0 answers
41 views

What should be a good playing strategy in this 2-player simultaneous game?

This is a bot making problem from here. I am detailing the problem. The picture above shows the initial configuration of the game. P1 represents player1 and P2 represents player2. A scotch bottle is ...
1 vote
0 answers
56 views

How can I design a DQN or policy gradient model to explore and collect all optimal solutions?

I am working to use DQN and Policy Gradient reinforcement learning models to solve classic maze escaping problems. So far, I have been able to train a model, which, after around 100 episodes, ...
4 votes
1 answer
102 views

How should I encode a categorical input?

Let's say you have an input which can take one of 10 different unique values. How would you encode it? Have input length 10 and one-hot encode it. Have 1 input but normalise the value between the ...
1 vote
0 answers
97 views

Why is the number of neurons used in various neural networks power of 2?

I have noticed that almost all tutorials take the number of neurons as a power of 2. Is there any proper mathematical and well-proven reason for that? If you sometimes change it to some other odd ...
3 votes
5 answers
2k views

Which classifier should I use for a dataset with one feature?

I have a labeled dataset composed of 3000 data. Its single feature is the price of the house and its label is the number of bedrooms. Which classifier would be a good choice to classify these data?
1 vote
0 answers
31 views

Leaky Discriminators and Siamese GANs

Is it useful to use Siamese network structure for GANs like sharing latent space between ...
2 votes
0 answers
55 views

How can I formalise a non-zero-sum game of $N$ agent as Markov game?

I coded a non-zero-sum game of $N$ agents in a discrete dynamic environment to RL with Q-learning and DQN agents. It's like a marathon. Only two actions are available per agent: $\{ G \text{ (move ...
1 vote
0 answers
34 views

How do I format task features with a one-hot task identification vector to ensure separate weight matrices for each task in multi-task RL?

I am on Lecture 2 of Stanford CS330 Multi-Task and Meta-learning, and on slide 10, the professor describes using a one-hot input vector to represent the task, and she also explained that there would ...
1 vote
0 answers
45 views

Why is my SVM not reaching good accuracy when trained to perform binary classification of search results?

I am trying to perform binary classification of search results based on the relevance to the query. I followed this tutorial on how to make an SVM, and I got it to work with a small iris dataset. Now, ...
5 votes
2 answers
728 views

Why do we need both the validation set and test set?

I know that this has been asked a hundred times before, however, I was not able to find a question (and an answer) which actually answered what I wanted to know, respectively, which explained it in a ...
1 vote
1 answer
57 views

Should I be trying to create a generic or specific (to particular game) reinforcement learning agent?

I'm creating an RL application for the game Connect Four. In general, should I be aiming to create an application that's more generic, which would 'learn' different games, or specific to a ...
2 votes
0 answers
41 views

How should I define the reward function for the Connect Four game?

I'm creating an RL application for the game Connect Four. I've researched the different strategies for the game and which positions are more favourable to lead to a win. Should I be assigning ...
1 vote
0 answers
40 views

How can I find the appropriate reward value for my reinforcement learning problem?

I am wondering how can I find the appropriate reward value for each specific problem. I know this is a highly empirical process, but I am sure that the value is not set totally at random. I want to ...
2 votes
2 answers
79 views

How to track performance of your model during experimenting? [closed]

During weeks and months of your work, many things may change, for example : You may modify the loss function Your training or validation datasets may change You modify data augmentation Which tools ...
2 votes
1 answer
107 views

How should I predict which characters are going to die in a certain movie?

How would one go about predicting which characters (actors) are going to die e.g. in the next Avengers movie? To elaborate a bit, given all leaked scripts (fake or not), interviews of different ...
0 votes
2 answers
2k views

How can I solve part b of exercise 3.6 from the book "Artificial Intelligence: A Modern Approach"?

I am trying to solve part b of the exercise 3.6 (page 113) from the book Artificial Intelligence: A Modern Approach. More specifically, I need to give a complete problem formulation (that is precise ...
2 votes
1 answer
417 views

How can I develop a reinforcement learning agent that plays memory cards game?

I am new to RL, and I am thinking of doing a little project. The goal of the project is to learn an agent play the memory game with cards. I already created the program for detecting the cards on the ...