artificial-intelligence

Is is still considered a BFS algorithm if I modify it A little bit?

Is is still considered a BFS algorithm if I modify it A little bit? Question: So I’m trying to create a program that finds the shortest path from nodeA to nodeB, however, I want to block certain nodes so that it would find another path. I’m not really aiming for an optimal code here I’m …

Total answers: 1

Tensor flow won't install using PIP? "No matching distribution found for tensorflow"

Tensor flow won't install using PIP? "No matching distribution found for tensorflow" Question: Command Prompt screenshot of the error Pip won’t install Tensorflow, I am using 64bit Python 3.11.1. I have download the Cuda toolkit. Using a 1050ti as the GPU. How do i get this to install? Downloaded Anaconda but that doesnt seem to …

Total answers: 1

Is there anyway I can import my own feature_importances into a model?

Is there anyway I can import my own feature_importances into a model? Question: I was wondering whether I am able to import feature_importances from let’s say model1 to model2, such that I can then train model2 starting from these feature_importances, and let model2 influence these feature_importances to create a new set of "Mutated" feature_importances. Thanks …

Total answers: 1

OpenAI GPT-3 API error: "InvalidRequestError: Unrecognized request argument supplied"

OpenAI GPT-3 API error: "InvalidRequestError: Unrecognized request argument supplied" Question: import openai # Set the API key openai.api_key = "YOUR API KEY" # Define the conversation memory conversation_memory = { "previous_question": "What is the capital of France?", "previous_answer": "The capital of France is Paris." } # Make the API request response = openai.Completion.create( model="text-davinci-003", prompt="Where …

Total answers: 1

How to find the max depth in a random forest classifier?

How to find the max depth in a random forest classifier? Question: I’ve a random forest classifier in Python with default parameters. After the classifier is built is it possible to find the max depth in random forest classifier ? For decision tree classifier we have tree.max_depth(). Example : this I know we can set …

Total answers: 1

Tensorflow can't find Graphic Card

Tensorflow can't find Graphic Card Question: Python don’t see Graphic card. Used official documentation here Install CUDA 11.2, cuDNN 8.1, tensorflow: 2.11.0/2.10.0. Also used several videos from Youtube, but still doesn’t work. Graphic card: 1650 I try to predict stock price and want to use Tensorflow GPU. Installed Visual Studio Installer and install all necessary …

Total answers: 1

Trying to apply fit_transofrm() function from sklearn.compose.ColumnTransformer class on array but getting "tuple index out of range" error

Trying to apply fit_transofrm() function from sklearn.compose.ColumnTransformer class on array but getting "tuple index out of range" error Question: I am beginner in ML/AI and trying to do pre-proccesing on my dataset of digits that I’ve made myself. I want to apply OneHotEncoding on my categorical variable (which is a dependent one,idk if it is …

Total answers: 1

Runtime Error: mat1 and mat2 shapes cannot be multiplied (16×756900 and 3048516×30)

Runtime Error: mat1 and mat2 shapes cannot be multiplied (16×756900 and 3048516×30) Question: How can I solve this problem? class Net(nn.Module): def __init__(self): super().__init__() self.conv1 = nn.Conv2d(3,8,11, padding=0) # in_channel, out_channel, kernel size self.pool = nn.MaxPool2d(2,2) # kernel_size, stride self.conv2 = nn.Conv2d(8, 36, 5, padding=0) self.fc1 = nn.Linear(36*291*291, 30) # in_features, out_features self.fc2 = nn.Linear(30, …

Total answers: 1