Questions tagged [cs50ai]

The tag has no usage guidance, but it has a tag wiki.

Filter by
Sorted by
Tagged with
0
votes
0answers
7 views

Downloading and unzipping distribution codes in Pycharm

I've recently decided to move away from the CS50 IDE to be a bit more independent. However, I'm stuck at the very beginning as I don't know how to download and unzip the distribution code. In the CS50 ...
0
votes
1answer
18 views

Tokenization problems in CS50ai Porject 8 Questions

I need help figuring out what's wrong with my code in the last project in CS50ai. I've failed like 5 times now my submissions and I'm so frustrated lol. Obviously I haven't submitted the same code ...
0
votes
0answers
228 views

"keras package error" AlreadyExistsError: Another metric with the same name already exist

I am working on load data function in Traffic project. the function is working fine, but when I tried to split data into training and testing sets by running the following line of code: labels = tf....
0
votes
0answers
15 views

CS50 AI Crossword self.crossword.variables is not giving me all the variables in the problem

I finished my code for the this assignment however when I run it I get an error saying 'NoneType' object has no attribute 'i'. After observing the stack I saw that backtrack was calling itself ...
0
votes
0answers
43 views

Iterative PageRank Values off by 0.003

According to the specifications, the iterative PageRank function given corpus0 should return the following: PageRank Results from Iteration 1.html: 0.2202 2.html: 0.4289 3.html: 0.2202 4.html: ...
0
votes
0answers
12 views

not getting the correct order for the top sentences in questions.py

for the questions assignment in unit 6, when I ask the question "How do neurons connect in a neural network?" instead of getting the answer that was shown in the sample run, I get the answer ...
0
votes
1answer
76 views

Help with CS50AI Project 1 Knights Puzzle 3

I've been struggling with puzzle 3 of Knights assignment. Any help would be appreciated. Seems like the issue is in depicting the statement B says "A said 'I am a knave'."Below is my code # ...
0
votes
0answers
51 views

Help checking my implementation of the Minimax Algorithmn for Project 0b in CS50 AI

""" Tic Tac Toe Player """ import math import copy X = "X" O = "O" EMPTY = None util = 0 def initial_state(): """ Returns ...
0
votes
0answers
21 views

CS50-ai Minimax algorithm is not responsive

I have implemented my minimax() algorithm. My ai is smart enough to find a solution that leads to a victory. However, it completely disregards the optimal move the enemy could do. This way, it is ...
0
votes
1answer
28 views

What is the meaning of this line of python code?

I am working on the first problem set for CS50AI (Degrees project). I believe I understand the intent (or specific workings) of every line of code, except this one: path = [(None, source)] + ...
0
votes
1answer
144 views

Iterative PageRank Questions

I have completed the iterative pagerank in the ai50 course and have a doubt. The example in cs50 for the iterative pagerank is different from mine by about 0.0004. If I have to fix this how do I fix ...
0
votes
1answer
50 views

Iterative Pagerank Formula

This is the formula cs50 gave us to solve iteratively, And for the second part of the formula we are supposed to repeat until the pagerank doesn't change by more than 0.001. I don't really understand ...
0
votes
1answer
199 views

CS50 AI Project 0a CS50 IDE bug

I am a high school student currently enrolled in the CS50 AI online edX course. I downloaded the distribution code for Project 0a, but the CS50 IDE is not able to open the large csv files because it ...
0
votes
0answers
87 views

CS50ai - Knights: error invalid syntax for part written by CS50ai (that I should not adapt)

I am having some trouble with exercise 'Knights' (week 1 - 2020 CS50ai). https://cs50.harvard.edu/ai/2020/projects/1/knights/ The goal of this exercise is to write a program to solve logic puzzels. ...
1
vote
1answer
710 views

CS50 AI - Knights - Knowledge 3

having a little trouble with the last part of the knights challenge. When run, it will print nothing for puzzle 3. I have been through the logic countless times now and in my head it seems to work. ...
0
votes
1answer
187 views

Struggling with logic on cs50 AI search

I completed CS50 intro to computer science a while back and I am starting the AI course now. I watched the lecture, and I understood how the logic worked for the maze and such, but I'm struggling on ...
0
votes
1answer
426 views

Problem with path reversing in CS50 AI -> Degrees

I have a problem in my code that reverses the path my BFS search algorythm takes. The first project in the CS50 Introduction to artificial intelligence is called degrees and finds a path from one ...
3
votes
2answers
2k views

CS50AI 2020 - Quiz 1 - Entailments

I am not asking for a specific answer, as I assume this would be against the rules of this group, just instructions to the correct approach for the following question: In CS50AI 2020 - Quiz 1, we ...
0
votes
1answer
429 views

Using submit50 on VSCode

I'm doing CS50 AI and as a result been using submit50 in VSCode via the Windows Subsystem for Linux. Until I updated my IDE to the April update, submit50 used to ask my GitHub username and password in ...
0
votes
3answers
77 views

Lecture question from lecture 1 (cs50AI)

In lecture 1(knowledge), Brian gives an example from Harry Potter and concludes that it did not rain that day. My question is that it's never mentioned in the example that rain causes Harry to not ...
1
vote
1answer
1k views

CS50AI Tic tac toe game with minimax algorithm: I keep receive Invalid move

So my code run, but only the first move, after that I keep getting "Invalid move" message (which was declared by myself) in my result function. I'm not sure what's wrong with my result function, or I ...
0
votes
0answers
229 views

Artificial Intelligence course's 0th lecture. QueueFrontier and StackFrontier produce the same results. What should I do to fix this?

I have joined CS50's Artificial Intelligence with Python online course but encountered a problem in the 0th project I downloaded from their website. It's a maze project and I have to telll the ...
0
votes
2answers
1k views

CS50 AI Problem 1A Invalid Syntax

For CS50AI Problem 1 (Knights), I am really confused as to what is producing this error. Code: from logic import * AKnight = Symbol("A is a Knight") AKnave = Symbol("A is a Knave") BKnight = ...
0
votes
1answer
154 views

CS50 AI Problem 0B Maximum Recursion Debt in Deepcopy

For CS50 AI Problem 0B, an error occurs when I try to deep copy the board in result(). What can I do? Code: """ Tic Tac Toe Player """ import math import copy X = "X" O = "O" EMPTY = None def ...