id
stringlengths
7
11
source
stringclasses
1 value
category
stringclasses
11 values
title
stringlengths
15
214
text
stringlengths
70
30.5k
url
stringlengths
57
160
tags
stringlengths
3
113
created_at
int64
1.22B
1.79B
se_79619981
stackoverflow
ARTIFICIAL_INTELLIGENCE
tflite model does not predict all the lines in hand as the .pt model does
tflite model does not predict all the lines in hand as the .pt model does I trained a YOLOv8 model for hand line detection. When I test the model in Python, it correctly detects all four hand lines, but when I convert the model to .tflite format and test it in Android Studio (Kotlin), it only predicts three lines. Pro...
https://stackoverflow.com/questions/79619981/tflite-model-does-not-predict-all-the-lines-in-hand-as-the-pt-model-does
kotlin, tensorflow, pytorch, artificial-intelligence
1,747,150,614
se_79615347
stackoverflow
ARTIFICIAL_INTELLIGENCE
Error installing dependencies from requirements.txt when setting up YOLOv10
Error installing dependencies from requirements.txt when setting up YOLOv10 I'm learning how to use Yolov10 and I'm facing some difficulties. When I try to install the libraries listed in the requirement.txt file, I encounter this error. ERROR: pip's dependency resolver does not currently take into account all the pac...
https://stackoverflow.com/questions/79615347/error-installing-dependencies-from-requirements-txt-when-setting-up-yolov10
python, error-handling, artificial-intelligence, yolo
1,746,870,246
se_79612826
stackoverflow
ARTIFICIAL_INTELLIGENCE
Marian nmt : marian-decoder, empty translation
Marian nmt : marian-decoder, empty translation I am interested in running marian-decoder (cli tool) for an english-french translation. Linux. Running Marian 1.12. Apparently, what I currently do, does not yield any result. Let me show you the steps and please tell me where I am wrong. 1: compile marian-nmt, following ...
https://stackoverflow.com/questions/79612826/marian-nmt-marian-decoder-empty-translation
artificial-intelligence, translation, opennmt, nmt
1,746,722,370
se_67625515
stackoverflow
ARTIFICIAL_INTELLIGENCE
Not able to write files from PYTTSX3
Not able to write files from PYTTSX3 I am doing Ai research. I have been using pyttsx3 for the voice. The pyttsx3 function does not produce visemes. It does produce limited timing for each word. I intend to make a function that take in the text, then produce the visemes for animation of an avatar. The problem is that ...
https://stackoverflow.com/questions/67625515/not-able-to-write-files-from-pyttsx3
python, artificial-intelligence, mp3, pyttsx3
1,621,532,675
se_79609919
stackoverflow
ARTIFICIAL_INTELLIGENCE
How to make NN really find optimal solution during training?
How to make NN really find optimal solution during training? Imagine a simple problem: make a function that gets a month index as input (zero-based: 0=Jan, 1=Feb, etc) and outputs number of days in this month (leap year ignored). Of course, using NN for that task is an overkill, but I wondered, can NN actually be trai...
https://stackoverflow.com/questions/79609919/how-to-make-nn-really-find-optimal-solution-during-training
machine-learning, deep-learning, pytorch, artificial-intelligence
1,746,600,444
se_79609322
stackoverflow
ARTIFICIAL_INTELLIGENCE
Yolo v11 obj detection custom inference gives totally different results than yolo cli predict
Yolo v11 obj detection custom inference gives totally different results than yolo cli predict I am trying to run an exported version of a fine-tuned yolov11n to detect road signs. When I run the model with the yolo cli on this exact same image, I get an object detected with confidence 0.86. But when I run it with my c...
https://stackoverflow.com/questions/79609322/yolo-v11-obj-detection-custom-inference-gives-totally-different-results-than-yol
python, conv-neural-network, artificial-intelligence, yolo, yolov11
1,746,557,687
se_79610433
stackoverflow
ARTIFICIAL_INTELLIGENCE
Natural language to JSON for N8N workflows
Natural language to JSON for N8N workflows We’re in the early stages of designing a system that converts natural language descriptions of automation workflows into structured JSON outputs, specifically for n8n workflows. The final JSON will be used directly in the n8n UI or sent to an endpoint for activation. We are c...
https://stackoverflow.com/questions/79610433/natural-language-to-json-for-n8n-workflows
json, nlp, artificial-intelligence, multi-agent, n8n
1,746,617,859
se_79598098
stackoverflow
ARTIFICIAL_INTELLIGENCE
Why is this python code not running under first execution?
Why is this python code not running under first execution? from transformers import pipeline summarizer = pipeline("summarization") result = summarizer( """ America has changed dramatically during recent years. Not only has the number of graduates in traditional engineering disciplines such as mechanical...
https://stackoverflow.com/questions/79598098/why-is-this-python-code-not-running-under-first-execution
machine-learning, nlp, artificial-intelligence, huggingface-transformers, large-language-model
1,745,921,042
se_79601098
stackoverflow
ARTIFICIAL_INTELLIGENCE
How to make my AWS Bedrock RAG AI Assistant ask which product the user is asking about
How to make my AWS Bedrock RAG AI Assistant ask which product the user is asking about I added a RAG AI assistant using AWS Bedrock to our website so customers can ask questions and get answers about the four products we sell. Each product has the same two documents, like: product_A_user_guide.pdf, product_A_specs.pdf...
https://stackoverflow.com/questions/79601098/how-to-make-my-aws-bedrock-rag-ai-assistant-ask-which-product-the-user-is-asking
python, amazon-web-services, artificial-intelligence, amazon-bedrock
1,746,047,263
se_64738626
stackoverflow
ARTIFICIAL_INTELLIGENCE
Measuring F1-score for NER
Measuring F1-score for NER I am trying to evaluate a model of artificial intelligence for NER (Named Entity Recognition). In order to compare with other benchmarks, I need to calculate the model's F1-score. However, I am unsure how to code this. My idea was: True-positives: equal tokens and equal tags, true-positive f...
https://stackoverflow.com/questions/64738626/measuring-f1-score-for-ner
nlp, artificial-intelligence, named-entity-recognition, measurement
1,604,842,214
se_79606757
stackoverflow
ARTIFICIAL_INTELLIGENCE
How to invoke a Gemini Fine tuned (via Vertex AI) model in Google ADK Agent
How to invoke a Gemini Fine tuned (via Vertex AI) model in Google ADK Agent Problem Statement: I fine-tuned a google's gemini flash 2.0 model via GCP Vertex AI. But I am unable to invoke the endpoint of that fine-tuned model trained on my own data in the below agent.py. I have provided all the code I have so far below...
https://stackoverflow.com/questions/79606757/how-to-invoke-a-gemini-fine-tuned-via-vertex-ai-model-in-google-adk-agent
python, artificial-intelligence, google-cloud-vertex-ai, fine-tuning
1,746,441,235
se_79603121
stackoverflow
ARTIFICIAL_INTELLIGENCE
ComfyUI LHM Node: "LHM stack expects a non-empty TensorList" errors when running workflow
ComfyUI LHM Node: "LHM stack expects a non-empty TensorList" errors when running workflow I'm trying to use the LHM ComfyUI Node from this GitHub repository. I followed all the installation steps provided in the repo. However, I encountered several issues: The provided workflow JSON couldn't be opened at fi...
https://stackoverflow.com/questions/79603121/comfyui-lhm-node-lhm-stack-expects-a-non-empty-tensorlist-errors-when-running
deep-learning, artificial-intelligence, stable-diffusion
1,746,177,991
se_79597244
stackoverflow
ARTIFICIAL_INTELLIGENCE
How to create prompt with /chat endpoint for llama.cpp?
How to create prompt with /chat endpoint for llama.cpp? I just installed raw llama.cpp to run codellama-7b-instruct.Q5_K_M.gguf. I started it on llama's server but unfortunatly it is responding with really weird answers, which looks like it is trying to simulate its own conversation. I have tried to use some kind of t...
https://stackoverflow.com/questions/79597244/how-to-create-prompt-with-chat-endpoint-for-llama-cpp
artificial-intelligence, chatbot, endpoint, large-language-model, llamacpp
1,745,872,004
se_79598009
stackoverflow
ARTIFICIAL_INTELLIGENCE
Getting web search is not supported in o4 mini , even though it is supported and my code should functionally be correct according to docs
Getting web search is not supported in o4 mini , even though it is supported and my code should functionally be correct according to docs this is my code : const payload = { model: "o4-mini-2025-04-16", tools: [{ type: "web_search_preview", // Optional: configure search context size (small, medium, high) search_conte...
https://stackoverflow.com/questions/79598009/getting-web-search-is-not-supported-in-o4-mini-even-though-it-is-supported-and
artificial-intelligence, openai-api
1,745,918,341
se_79600947
stackoverflow
ARTIFICIAL_INTELLIGENCE
qbo3 Scoring vs Document/AiClassify
qbo3 Scoring vs Document/AiClassify I have a document that I am extracting data from using a qbo3 ScoreTemplate using the AiScoreEngine. Additionally, I need to set the Document's Template. I have defined the following items in my score: Account Number Document is a Mortgage? Document is a Note? Document is a Payoff ...
https://stackoverflow.com/questions/79600947/qbo3-scoring-vs-document-aiclassify
artificial-intelligence, qbo3
1,746,039,697
se_79591839
stackoverflow
ARTIFICIAL_INTELLIGENCE
Trained model has "training_args.bin" along with other essentials but I don't see "pytorch_model.bin"
Trained model has "training_args.bin" along with other essentials but I don't see "pytorch_model.bin" I'm training a model, and the output includes training_args.bin along with other essential files. However, I don't see a pytorch_model.bin file. From what I've read and gathered through GPT, th...
https://stackoverflow.com/questions/79591839/trained-model-has-training-args-bin-along-with-other-essentials-but-i-dont-se
python, machine-learning, artificial-intelligence, huggingface-transformers
1,745,557,408
se_79590822
stackoverflow
ARTIFICIAL_INTELLIGENCE
How can I create quota for a local Gemini Live Voice project?
How can I create quota for a local Gemini Live Voice project? I am playing around with Google ADK and I have created a simple agent that is working pretty well. However, I want to use an LLM that can use voice, so I tried "gemini-2.0-flash-live-001". It seems to work sporadically, but I keep getting the message below....
https://stackoverflow.com/questions/79590822/how-can-i-create-quota-for-a-local-gemini-live-voice-project
artificial-intelligence, agent, google-gemini, adk
1,745,504,223
se_78199805
stackoverflow
ARTIFICIAL_INTELLIGENCE
About ToTensorV2() about albumentations
About ToTensorV2() about albumentations I am using ToTensorV2() to transform the data, but I asked ChatGPT if this function can scale the data to 0 - 1, and it answered yes. However, when I use cv2.imread() to read an image and pass the image to the transform, the data doesn't scale. Do I have an error somewhere, or d...
https://stackoverflow.com/questions/78199805/about-totensorv2-about-albumentations
artificial-intelligence, transform, albumentations
1,711,022,519
se_79586550
stackoverflow
ARTIFICIAL_INTELLIGENCE
How can I optimize a Streamlit dashboard for large CSV files to improve load time?
How can I optimize a Streamlit dashboard for large CSV files to improve load time? My Streamlit app reads and visualizes data from a large CSV file (~100MB). The app takes several seconds to load. What are the best practices for improving performance—such as using @st.cache_data, lazy loading, or preprocessing?
https://stackoverflow.com/questions/79586550/how-can-i-optimize-a-streamlit-dashboard-for-large-csv-files-to-improve-load-tim
forms, machine-learning, artificial-intelligence, data-analysis
1,745,327,175
se_79588564
stackoverflow
ARTIFICIAL_INTELLIGENCE
my clasification A.I. model cant surpass a certain validation precision threshold
my clasification A.I. model cant surpass a certain validation precision threshold I've recently getting started with A.I. and for a project i wanted to create a model that can classify what kind of disease you have based on a chest x-ray, After writing the model and using the DenseNet architecture( as it was the best ...
https://stackoverflow.com/questions/79588564/my-clasification-a-i-model-cant-surpass-a-certain-validation-precision-threshol
python, tensorflow, keras, artificial-intelligence, densenet
1,745,409,389
se_61711686
stackoverflow
ARTIFICIAL_INTELLIGENCE
Logic aplications in artificial intelligence
Logic aplications in artificial intelligence I'm a computer engineering student but I've still never programmed in my life (I've only studied physics, operation research, math etc), but I'm studying on the side some logic (propositional, first order, fuzzy, and temporal logic). I've read that logic is used in artifici...
https://stackoverflow.com/questions/61711686/logic-aplications-in-artificial-intelligence
logic, artificial-intelligence
1,589,112,360
se_79583654
stackoverflow
ARTIFICIAL_INTELLIGENCE
Logits Don't Change in a Custom Reimplementation of a CLIP model [PyTorch]
Logits Don&#39;t Change in a Custom Reimplementation of a CLIP model [PyTorch] The problem The similarity scores are almost the same for texts that describe both a photo of a cat and a dog (the photo is of a cat). Cat similarity: tensor([[-3.5724]], grad_fn=<MulBackward0>) Dog similarity: tensor([[-3.4155]], grad_fn=<...
https://stackoverflow.com/questions/79583654/logits-dont-change-in-a-custom-reimplementation-of-a-clip-model-pytorch
python, deep-learning, pytorch, artificial-intelligence, transformer-model
1,745,174,763
se_79585208
stackoverflow
ARTIFICIAL_INTELLIGENCE
Replicate mouse movement in a 3D FPS game using Python?
Replicate mouse movement in a 3D FPS game using Python? I'm trying make a neural network based AI for Jedi Academy via behavioral cloning (learning to imitate pros). For the behavioral cloning to be faithful it is crucial for one to be able to reproduce mouse movements. That is, if the data says rotate the character 4...
https://stackoverflow.com/questions/79585208/replicate-mouse-movement-in-a-3d-fps-game-using-python
python, bots, artificial-intelligence
1,745,264,190
se_79581104
stackoverflow
ARTIFICIAL_INTELLIGENCE
Triggering next node in langgraph
Triggering next node in langgraph I am making a chatbot using langgraph each node allocated to teach a topic e.g AI, Prompts and LLM etc. i am using this Docuemnt: https://langchain-ai.github.io/langgraph/how-tos/multi-agent-network/ here is the code from typing_extensions import Literal from langchain_openai import C...
https://stackoverflow.com/questions/79581104/triggering-next-node-in-langgraph
python, artificial-intelligence, langchain, agent, langgraph
1,744,982,195
se_78325075
stackoverflow
ARTIFICIAL_INTELLIGENCE
I&#39;m Unable to Upload Videos/audios in Google Gemini API 1.5Pro
I&#39;m Unable to Upload Videos/audios in Google Gemini API 1.5Pro Can someone help me to use Google Gemini API1.5Pro model with Video/audio Processing? I've already searched almost in all search engines, but can't find any resource to learn. My requirement is to upload an audio file and ask the AI to summarize it. I'...
https://stackoverflow.com/questions/78325075/im-unable-to-upload-videos-audios-in-google-gemini-api-1-5pro
javascript, node.js, express, artificial-intelligence, google-gemini
1,713,124,468
se_79576039
stackoverflow
ARTIFICIAL_INTELLIGENCE
Langgraph: How to retrieve and store chat history throughout the session
Langgraph: How to retrieve and store chat history throughout the session I am new to the Langgraph. I am trying to retrieve chathistory from state into a variable untill the session close. below what i have tried llm = ChatOpenAI(temperature=1.0) class State(TypedDict): messages : Annotated[list, add_messages] g...
https://stackoverflow.com/questions/79576039/langgraph-how-to-retrieve-and-store-chat-history-throughout-the-session
python, artificial-intelligence, langchain, large-language-model, langgraph
1,744,751,895
se_79576880
stackoverflow
ARTIFICIAL_INTELLIGENCE
Detecting an object in an gradient background going wrong
Detecting an object in an gradient background going wrong I am struggling to detect objects in an image where the background and the object have gradients applied, not only that but have transparency in the object as well, see them as holes in the object. I've tried doing it with Sobel and more, and using GrabCut, wit...
https://stackoverflow.com/questions/79576880/detecting-an-object-in-an-gradient-background-going-wrong
python, image-processing, computer-vision, artificial-intelligence, sobel
1,744,797,080
se_76943185
stackoverflow
ARTIFICIAL_INTELLIGENCE
How to use Google&#39;s Gen AI Multi-turn search API in python
How to use Google&#39;s Gen AI Multi-turn search API in python Currently I am using Google Discovery engine regular search but I want to use this multi-turn search which saves the context of my previous queries but I am unable to find any documentation regarding how to implement it in python, link: https://cloud.googl...
https://stackoverflow.com/questions/76943185/how-to-use-googles-gen-ai-multi-turn-search-api-in-python
google-cloud-platform, artificial-intelligence, vertex-ai-search
1,692,602,833
se_79571227
stackoverflow
ARTIFICIAL_INTELLIGENCE
DIfference in variable values in jax non-jit runtime and jit transformed runtime
DIfference in variable values in jax non-jit runtime and jit transformed runtime I have a deep learning mode which I am running in the jit transformed manner by: my_function_checked = checkify.checkify(model.apply) model_jitted = jax.jit(my_function_checked) err, pred = model_jitted({"params": params}, batch, ...
https://stackoverflow.com/questions/79571227/difference-in-variable-values-in-jax-non-jit-runtime-and-jit-transformed-runtime
python, deep-learning, pytorch, artificial-intelligence, jax
1,744,522,432
se_79569794
stackoverflow
ARTIFICIAL_INTELLIGENCE
AWS Bedrock Agent InvokeAgentCommand throws &quot;Internal Server Exception&quot;
AWS Bedrock Agent InvokeAgentCommand throws &quot;Internal Server Exception&quot; I'm currently building a gen AI based CLI chatbot with an AWS Bedrock Agent in Node.js with the AWS SDK for JavaScript. But for some reason both in my code and in the testing enviroment within the AWS console I get this same error: Inter...
https://stackoverflow.com/questions/79569794/aws-bedrock-agent-invokeagentcommand-throws-internal-server-exception
node.js, amazon-web-services, command-line-interface, artificial-intelligence, amazon-bedrock
1,744,410,724
se_79566769
stackoverflow
ARTIFICIAL_INTELLIGENCE
torch.distributed.elastic.multiprocessing.errors.ChildFailedError / &quot;HIP error: invalid device function&quot; following AMD AI training docs
torch.distributed.elastic.multiprocessing.errors.ChildFailedError / &quot;HIP error: invalid device function&quot; following AMD AI training docs I'm new on AI developing and I'm trying to train a model, the thing is that there are two AMD GPUs on the server that are Radeon RX 7600 XT and the CPU is a Ryzen 9 5900XT 1...
https://stackoverflow.com/questions/79566769/torch-distributed-elastic-multiprocessing-errors-childfailederror-hip-error
python, docker, artificial-intelligence, amd-gpu, gfx
1,744,291,238
se_79445120
stackoverflow
ARTIFICIAL_INTELLIGENCE
llama3 responding only function call?
llama3 responding only function call? I am trying to make Llama3 Instruct able to use function call from tools , it does work but now it is answering only function call! if I ask something like who are you ? or what is apple device ? it answer back function call , I believe it is something in chat template ? or still ...
https://stackoverflow.com/questions/79445120/llama3-responding-only-function-call
python, artificial-intelligence, chatbot, llama, llama3
1,739,788,520
se_58418928
stackoverflow
ARTIFICIAL_INTELLIGENCE
Tesseract can&#39;t recognize images with handwritten text, what can I do?
Tesseract can&#39;t recognize images with handwritten text, what can I do? As I asked in my previous question the problem I'm facing is that I have hundreds of images of handwritten notes. They were written from different people but they are in sequence so you know that for example person1 wrote img1.jpg -> img100.jpg...
https://stackoverflow.com/questions/58418928/tesseract-cant-recognize-images-with-handwritten-text-what-can-i-do
neural-network, conv-neural-network, artificial-intelligence, handwriting-recognition, icr
1,571,247,728
se_79563294
stackoverflow
ARTIFICIAL_INTELLIGENCE
Packaged WinUI 3 App Crashes (Stack Overflow/COMException) When Including Native C++ DLL (gemma.cpp Wrapper)
Packaged WinUI 3 App Crashes (Stack Overflow/COMException) When Including Native C++ DLL (gemma.cpp Wrapper) I'm trying to integrate Google's gemma.cpp library (compiled locally) into a WinUI 3 C# desktop application using the "Blank App, Packaged (WinUI 3 in Desktop)" template. To do this, I've created an intermediat...
https://stackoverflow.com/questions/79563294/packaged-winui-3-app-crashes-stack-overflow-comexception-when-including-native
visual-c++, artificial-intelligence, winui-3, gemma
1,744,162,252
se_21514270
stackoverflow
ARTIFICIAL_INTELLIGENCE
Natural Language Processing Tag definitions
Natural Language Processing Tag definitions When parsing and tagging the words with OpenNLP i was wondering if the tags (eg S, NP, VP, ADJP) actually mean, i found a few by researching the web, but some of them are still missing, which i am unable to find, currently my code outputs this: The movie was really good \-S...
https://stackoverflow.com/questions/21514270/natural-language-processing-tag-definitions
nlp, artificial-intelligence, opennlp
1,391,364,726
se_77606776
stackoverflow
ARTIFICIAL_INTELLIGENCE
ChatGPT randomly adding extra unnecessary stuff to output despite asking for just the JSON format
ChatGPT randomly adding extra unnecessary stuff to output despite asking for just the JSON format I have a goal of making the ChatGPT 4.0 API output something in a consistent format, i.e. in a JSON-format. desired output example { "name": "Jon", "last_nane": "Doe" } actual output example ```json // here it rand...
https://stackoverflow.com/questions/77606776/chatgpt-randomly-adding-extra-unnecessary-stuff-to-output-despite-asking-for-jus
artificial-intelligence
1,701,784,716
se_79555518
stackoverflow
ARTIFICIAL_INTELLIGENCE
Is there a reliable way to loop through observations with the LLM packages in R?
Is there a reliable way to loop through observations with the LLM packages in R? I'm trying to use a few LLM packages in R to run a few types of prompts through a large number of observations (255 x three different prompts = 765 observations/LLM run). To ensure that the resulting list of outputs matches the initial li...
https://stackoverflow.com/questions/79555518/is-there-a-reliable-way-to-loop-through-observations-with-the-llm-packages-in-r
r, artificial-intelligence, chatgpt-api
1,743,775,082
se_78442780
stackoverflow
ARTIFICIAL_INTELLIGENCE
Getting a pyarrow.lib.ArrowInvalid: Column 1 named type expected length 44 but got length 21 when trying to create Hugging Face database
Getting a pyarrow.lib.ArrowInvalid: Column 1 named type expected length 44 but got length 21 when trying to create Hugging Face database I am getting the below error when trying to modify, chunk and resave a Huggingface Dataset. I was wondering if anyone might be able to help? Traceback (most recent call last): File...
https://stackoverflow.com/questions/78442780/getting-a-pyarrow-lib-arrowinvalid-column-1-named-type-expected-length-44-but-g
python, artificial-intelligence, huggingface-datasets
1,715,087,668
se_79546278
stackoverflow
ARTIFICIAL_INTELLIGENCE
Error predicting from a vertex ai endpoint in python (error 503 DNS resolution failed)
Error predicting from a vertex ai endpoint in python (error 503 DNS resolution failed) I'm trying to call a prediction from my custom vertex ai endpoint, but I am getting the below error. Not sure whats happening. below are some things I have tried doing: Double checking endpoint id and project number All python pack...
https://stackoverflow.com/questions/79546278/error-predicting-from-a-vertex-ai-endpoint-in-python-error-503-dns-resolution-f
python, artificial-intelligence, google-cloud-vertex-ai, http-status-code-503
1,743,425,514
se_79398991
stackoverflow
ARTIFICIAL_INTELLIGENCE
Using Pytorch Sequential for reinforcement model without gym
Using Pytorch Sequential for reinforcement model without gym I'm trying to play a game with AI, but I want to do it in real time. Because of that, I'm not using gym to create an environment. I want to take a screenshot, preprocess it, then pass it through the model before updating the model based on whether or not the...
https://stackoverflow.com/questions/79398991/using-pytorch-sequential-for-reinforcement-model-without-gym
python, pytorch, conv-neural-network, artificial-intelligence, reinforcement-learning
1,738,218,434
se_79544014
stackoverflow
ARTIFICIAL_INTELLIGENCE
Pathfinding Issue in Unity 2D Grid-Based Game: Target Occupies Multiple Tiles
Pathfinding Issue in Unity 2D Grid-Based Game: Target Occupies Multiple Tiles I'm developing my own pathfinding algorithm for a 2D grid-based game in Unity 2D, and I've run into an issue affecting how enemies navigate toward their target. Problem Currently, when an enemy calculates a path to its target (e.g., the play...
https://stackoverflow.com/questions/79544014/pathfinding-issue-in-unity-2d-grid-based-game-target-occupies-multiple-tiles
c#, unity-game-engine, artificial-intelligence, path-finding, a-star
1,743,290,261
se_69543907
stackoverflow
ARTIFICIAL_INTELLIGENCE
PyTorch `torch.no_grad` vs `torch.inference_mode`
PyTorch `torch.no_grad` vs `torch.inference_mode` PyTorch has new functionality torch.inference_mode as of v1.9 which is "analogous to torch.no_grad... Code run under this mode gets better performance by disabling view tracking and version counter bumps." If I am just evaluating my model at test time (i.e. not trainin...
https://stackoverflow.com/questions/69543907/pytorch-torch-no-grad-vs-torch-inference-mode
machine-learning, pytorch, artificial-intelligence, gradient-descent, inference
1,634,055,683
se_79539517
stackoverflow
ARTIFICIAL_INTELLIGENCE
Why is Min Max playing the first available move it can find as best move?
Why is Min Max playing the first available move it can find as best move? The Minimax algorithm only selects the first available move as the best move when none of its pieces are threatened. On an 8x8 board, when it is the bot's turn to play and the Minimax algorithm is called to determine the best move, the bot choos...
https://stackoverflow.com/questions/79539517/why-is-min-max-playing-the-first-available-move-it-can-find-as-best-move
flutter, dart, artificial-intelligence, minmax
1,743,093,367
se_79538838
stackoverflow
ARTIFICIAL_INTELLIGENCE
Why sometimes same output values ​are obtained with different input data on neural network from scratch C#?
Why sometimes same output values ​are obtained with different input data on neural network from scratch C#? I have been suffering for several days and cannot understand what the problem is, the neural network can SOMETIMES produce the same results for different input data, sometimes it works correctly, perhaps the pro...
https://stackoverflow.com/questions/79538838/why-sometimes-same-output-values-are-obtained-with-different-input-data-on-neur
c#, artificial-intelligence
1,743,078,146
se_79513881
stackoverflow
ARTIFICIAL_INTELLIGENCE
How to Fine-Tune Projection Layer in CLIP Model Using LoRA?
How to Fine-Tune Projection Layer in CLIP Model Using LoRA? I'm trying to fine-tune the projection layers in the CLIP model using LoRA. I need help identifying the exact projection layers to modify for my fine-tuning and how I can apply LoRA to them. Model loading: import clip device = "cuda" if torch.cuda.is_availab...
https://stackoverflow.com/questions/79513881/how-to-fine-tune-projection-layer-in-clip-model-using-lora
nlp, artificial-intelligence, large-language-model, image-text
1,742,197,071
se_79372567
stackoverflow
ARTIFICIAL_INTELLIGENCE
insightface cannot recognize faces
insightface cannot recognize faces I used Insightface to detect a face in an image, but the detection result was an empty list (unable to detect any faces). Could you help identify which part might have gone wrong? Here are the code and the input/output: My Code import cv2 from insightface.app import FaceAnalysis fr...
https://stackoverflow.com/questions/79372567/insightface-cannot-recognize-faces
python, artificial-intelligence, insightface
1,737,404,553
se_78946484
stackoverflow
ARTIFICIAL_INTELLIGENCE
Problem with streamlit text_input and display result
Problem with streamlit text_input and display result I'm trying to create a chatbot-like app using Streamlit, and I'm facing some issues with the text_input and how to display that. To be more specific, when I click the button "Edit Chat Name" on it appears correctly the text_input field and I enter the text but inste...
https://stackoverflow.com/questions/78946484/problem-with-streamlit-text-input-and-display-result
python, artificial-intelligence, chatbot, openai-api, streamlit
1,725,411,956
se_79524462
stackoverflow
ARTIFICIAL_INTELLIGENCE
How to make the web version of GitHub Copilot use the correct inline formula version when outputting mathematical formulas?
How to make the web version of GitHub Copilot use the correct inline formula version when outputting mathematical formulas? I found that even after using prompts, inline formulas still cannot be displayed correctly when using the web version of GitHub Copilot. Some inline formulas are correctly wrapped in a single $ s...
https://stackoverflow.com/questions/79524462/how-to-make-the-web-version-of-github-copilot-use-the-correct-inline-formula-ver
artificial-intelligence, prompt, mathjax, github-copilot
1,742,524,591
se_77259854
stackoverflow
ARTIFICIAL_INTELLIGENCE
langchain and aws lambda layer in Python
langchain and aws lambda layer in Python I need to create a lambda layer for lambda using python 3.9 to be deployed in aws lambda. My lambda uses: langchain.prompts, langchain.retrievers, langchain.llms, langchain.chains I was force to pin the architecture and Python version because otherwise, pedantic, a dependenc...
https://stackoverflow.com/questions/77259854/langchain-and-aws-lambda-layer-in-python
python, aws-lambda, artificial-intelligence, aws-lambda-layers
1,696,863,222
se_76711800
stackoverflow
ARTIFICIAL_INTELLIGENCE
How can I protect open source against (mis)use by AI?
How can I protect open source against (mis)use by AI? As of 2023, there's a bunch of (Generative) AI available for public use; usually, they're re-constructing the most likely sequence of symbols for a given context. Which technical means exist to keep well-behaved (generative) AI from using my open source code? For w...
https://stackoverflow.com/questions/76711800/how-can-i-protect-open-source-against-misuse-by-ai
web-crawler, artificial-intelligence, open-source
1,689,675,916
se_79527578
stackoverflow
ARTIFICIAL_INTELLIGENCE
AI Model returning huge responses
AI Model returning huge responses I was using the model mistralai/Mistral-7B-Instruct-v0.3 from HuggingFace https://huggingface.co/mistralai/Mistral-7B-Instruct-v0.3 . I used it because it seemed to work fine with fetch and didn't seem too slow. I tried not using any library. This is my code: //app.js const API_KEY =...
https://stackoverflow.com/questions/79527578/ai-model-returning-huge-responses
javascript, artificial-intelligence, huggingface, mistral-7b
1,742,652,948
se_78716319
stackoverflow
ARTIFICIAL_INTELLIGENCE
Dynamic input Function Wrappers in SpringAI
Dynamic input Function Wrappers in SpringAI Issue with Adding Function Wrappers in ChatClient for Dynamic Variables in Spring AI Context: I'm trying to implement a feature similar to the booking example provided by the Spring AI team on GitHub. However, the documentation seems outdated, and I am encountering errors wh...
https://stackoverflow.com/questions/78716319/dynamic-input-function-wrappers-in-springai
artificial-intelligence, openai-api, azure-openai, spring-ai
1,720,319,405
se_71588029
stackoverflow
ARTIFICIAL_INTELLIGENCE
PDDL - invalid predicates and correct usage of forall
PDDL - invalid predicates and correct usage of forall I am trying to create a domain and problem file as an exercise. Short domain description: I have a couple of cars which can be taken and put at places A and B. The task is simple: take all the cars from place A and move them to place B. I created the following doma...
https://stackoverflow.com/questions/71588029/pddl-invalid-predicates-and-correct-usage-of-forall
artificial-intelligence, planning, pddl
1,648,041,847
se_45068568
stackoverflow
ARTIFICIAL_INTELLIGENCE
How to create a new gym environment in OpenAI?
How to create a new gym environment in OpenAI? I have an assignment to make an AI Agent that will learn to play a video game using ML. I want to create a new environment using OpenAI Gym because I don't want to use an existing environment. How can I create a new, custom Environment? Also, is there any other way I can ...
https://stackoverflow.com/questions/45068568/how-to-create-a-new-gym-environment-in-openai
machine-learning, artificial-intelligence, openai-gym
1,499,898,741
se_79462669
stackoverflow
ARTIFICIAL_INTELLIGENCE
Is it possible to share an Azure-based RAG chatbot without requiring users to sign in with Azure?
Is it possible to share an Azure-based RAG chatbot without requiring users to sign in with Azure? I’ve been experimenting with Azure AI Foundry and created a Retrieval-Augmented Generation (RAG) chatbot that works great on its own. However, when I try to deploy the chatbot using Azure, I encounter an issue: the deploy...
https://stackoverflow.com/questions/79462669/is-it-possible-to-share-an-azure-based-rag-chatbot-without-requiring-users-to-si
azure, artificial-intelligence, chatbot, streamlit, rag
1,740,380,810
se_48314108
stackoverflow
ARTIFICIAL_INTELLIGENCE
Monte Carlo Tree Search Implementation
Monte Carlo Tree Search Implementation I understand the theory behind MCTS, but here is my issue. Monte Carlo methods in games require simulating a game from the current state until a terminal state is reached. In order for the search to converge to Minimax (the actual ideal move sequence), thousands, perhaps millions...
https://stackoverflow.com/questions/48314108/monte-carlo-tree-search-implementation
optimization, artificial-intelligence, simulation, chess, montecarlo
1,516,251,478
se_78287134
stackoverflow
ARTIFICIAL_INTELLIGENCE
Using OpenAI API for answering questions about csv file
Using OpenAI API for answering questions about csv file I'm starting with OpenAI API and experimenting with langchain. I have a .csv file with approximately 1000 rows and 85 columns with string values. I found some beginner article that I followed and have a colab notebook with the following code: txt_file_path = '/co...
https://stackoverflow.com/questions/78287134/using-openai-api-for-answering-questions-about-csv-file
python, artificial-intelligence, openai-api, langchain, retrieval-augmented-generation
1,712,478,446
se_79509243
stackoverflow
ARTIFICIAL_INTELLIGENCE
How to Use Template in Langchain to Insert Results from Chain for Further Reasoning?
How to Use Template in Langchain to Insert Results from Chain for Further Reasoning? I'm working with Langchain and OpenAI to develop a conversational AI. I've integrated multiple tools into the chain and am using a template to structure the conversation. However, I'm stuck on how to use the results from the chain (ch...
https://stackoverflow.com/questions/79509243/how-to-use-template-in-langchain-to-insert-results-from-chain-for-further-reason
python, artificial-intelligence, chatbot, langchain, large-language-model
1,741,959,732
se_79500227
stackoverflow
ARTIFICIAL_INTELLIGENCE
Why am I getting RuntimeError: no running event loop and in my VS code when I am trying to run my command streamlit run main.py?
Why am I getting RuntimeError: no running event loop and in my VS code when I am trying to run my command streamlit run main.py? I am trying to build a conversational chatbot using VS Code. The code is following: ## RAG Q&A Conversation With PDF Including Chat History import streamlit as st from langchain.chains impor...
https://stackoverflow.com/questions/79500227/why-am-i-getting-runtimeerror-no-running-event-loop-and-in-my-vs-code-when-i-am
machine-learning, deep-learning, artificial-intelligence, chatbot, langchain
1,741,685,646
se_79499322
stackoverflow
ARTIFICIAL_INTELLIGENCE
YOLOv11 Model Converted to TFLite Not Producing Correct Output in TensorFlow
YOLOv11 Model Converted to TFLite Not Producing Correct Output in TensorFlow I'm training an ALPR detection model using the dataset from Roboflow ALPR with YOLOv11, converted to TFLite using: import ultralytics as yolo !yolo detect export model=/content/runs/detect/yolov11_anpr/weights/best.pt imgsz=640 batch=1 format...
https://stackoverflow.com/questions/79499322/yolov11-model-converted-to-tflite-not-producing-correct-output-in-tensorflow
python, tensorflow, artificial-intelligence, data-science, yolo
1,741,647,254
se_79352104
stackoverflow
ARTIFICIAL_INTELLIGENCE
Why the even epochs are not giving appropriate results in binary classification problem
Why the even epochs are not giving appropriate results in binary classification problem I wanted to do image classification using CNN and now I am getting abnormal results cause the even no of epochs are not working as expected even if i change the no of epochs import os import numpy as np import pandas as pd import m...
https://stackoverflow.com/questions/79352104/why-the-even-epochs-are-not-giving-appropriate-results-in-binary-classification
python, tensorflow, deep-learning, conv-neural-network, artificial-intelligence
1,736,769,307
se_8141223
stackoverflow
ARTIFICIAL_INTELLIGENCE
Pacman Ghost AI
Pacman Ghost AI I'm currently making a pacman game in java. I have a question about the ghosts. I understand that the ghosts do not all have the same style of attack. I first want to work on the basics of getting the ghost to go after the pacman and not worry about there differences yet. What would be the best way to ...
https://stackoverflow.com/questions/8141223/pacman-ghost-ai
java, artificial-intelligence, pacman
1,321,381,709
se_79477997
stackoverflow
ARTIFICIAL_INTELLIGENCE
API endpoint for AI chat completions worked on local but 500 on Cloudflare production
API endpoint for AI chat completions worked on local but 500 on Cloudflare production I am having problems with deploying my NextJS app, which is using an API endpoint for chat completions from OpenRouter AI. The API endpoint below worked well on my local, but when I wanted to deploy my app on Cloudflare, the Internal...
https://stackoverflow.com/questions/79477997/api-endpoint-for-ai-chat-completions-worked-on-local-but-500-on-cloudflare-produ
next.js, artificial-intelligence, cloudflare, openai-api, edge-runtime
1,740,850,885
se_79485287
stackoverflow
ARTIFICIAL_INTELLIGENCE
how to pass additional query filters to a SelfQueryRetriever?
how to pass additional query filters to a SelfQueryRetriever? We are implementing a SelfQueryRetriever using OpenSearch as vectorstore, in general it works fine generating the metadata filters from the user query but we need some way to append other filters to the query, and I cannot find how to do that in the documen...
https://stackoverflow.com/questions/79485287/how-to-pass-additional-query-filters-to-a-selfqueryretriever
python, nlp, artificial-intelligence, langchain
1,741,140,219
se_68684989
stackoverflow
ARTIFICIAL_INTELLIGENCE
How to implement a minimax algorithm in a chess-like game?
How to implement a minimax algorithm in a chess-like game? I am currently trying to write an AI that plays a chess-like game. For this I am using a variant of the minimax algorithm that iterates through every possible move and then assumes for a depth of N that the opponent (and they) will play optimally for N moves. ...
https://stackoverflow.com/questions/68684989/how-to-implement-a-minimax-algorithm-in-a-chess-like-game
artificial-intelligence, chess, minimax
1,628,267,979
se_79466883
stackoverflow
ARTIFICIAL_INTELLIGENCE
How do I generate an OpenAPI definition for an existing application?
How do I generate an OpenAPI definition for an existing application? I am trying to build a custom connector for Power Apps. I need an OpenAPI definition (a json file) to create the connector. If I have an Azure AI resource, like Computer Vision, how do I generate or download the OpenAPI definition for that resource?
https://stackoverflow.com/questions/79466883/how-do-i-generate-an-openapi-definition-for-an-existing-application
azure, artificial-intelligence, connector, powerapps-canvas
1,740,493,628
se_79479136
stackoverflow
ARTIFICIAL_INTELLIGENCE
Program runs only once even after using loop
Program runs only once even after using loop def data_input(): # It gets the data that the llm need and the user wants to ask question related to this data def chat_with_data(data): messages = [ { "role": "system", "content": "You are given some data and you have to analyze the data correctl...
https://stackoverflow.com/questions/79479136/program-runs-only-once-even-after-using-loop
python, python-3.x, artificial-intelligence, llama, ollama
1,740,920,887
se_60591577
stackoverflow
ARTIFICIAL_INTELLIGENCE
will dropout layer enhance accuracy
will dropout layer enhance accuracy I know that adding a dropout layer into a CNN model enhances accuracy, since it decrease the impact of over-fitting. However, I built a CNN model with 16,32 and 64 filters, size 3 and maxpool of 2 and noticed that the model without the dropout layer performed better than the model w...
https://stackoverflow.com/questions/60591577/will-dropout-layer-enhance-accuracy
python, machine-learning, artificial-intelligence, conv-neural-network
1,583,697,843
se_79372940
stackoverflow
ARTIFICIAL_INTELLIGENCE
How to get a list of models available in Ollama using Langchain
How to get a list of models available in Ollama using Langchain I am trying to run a Python script that gets and prints a list of the models that are available to a running instance of Ollama. My code, based on code provided at https://medium.com/@garysvenson09/how-to-list-all-models-in-ollama-for-langchain-tutorial-7...
https://stackoverflow.com/questions/79372940/how-to-get-a-list-of-models-available-in-ollama-using-langchain
python, artificial-intelligence, langchain
1,737,418,968
se_79116496
stackoverflow
ARTIFICIAL_INTELLIGENCE
How to send context between multiple Mistral AI api call to keep conversation like a chat bot?
How to send context between multiple Mistral AI api call to keep conversation like a chat bot? I want to create a chat bot like using Mistral AI api. But Api respond like a new start between each call and it does not keep the context. Here is my python code (from documentation): import os from mistralai import Mistral...
https://stackoverflow.com/questions/79116496/how-to-send-context-between-multiple-mistral-ai-api-call-to-keep-conversation-li
python, artificial-intelligence, mistral-ai
1,729,661,524
se_77702938
stackoverflow
ARTIFICIAL_INTELLIGENCE
Integrating Autogen with Gemini Pro&#39;s APi
Integrating Autogen with Gemini Pro&#39;s APi with the release of Gemini pro model they are offering free API for token usage , but within some limit. My question is, can we integrate Autogen library with New Gemini pro api? I am trying to connect with autogen somehow i am getting error of api incorrect ,use openai ap...
https://stackoverflow.com/questions/77702938/integrating-autogen-with-gemini-pros-api
artificial-intelligence, google-gemini, ms-autogen
1,703,239,198
se_79448171
stackoverflow
ARTIFICIAL_INTELLIGENCE
Extracting tables and cleaning it from spreadsheets
Extracting tables and cleaning it from spreadsheets I am creating RAG using langchain. Everything is working fine when it comes to PDF. But, I have a task to ingest excel .xlsx spreadsheets, find the table inside of them and then parse that table for the RAG. I am unable to automatically identify the empty rows, colum...
https://stackoverflow.com/questions/79448171/extracting-tables-and-cleaning-it-from-spreadsheets
artificial-intelligence, langchain
1,739,879,606
se_20516027
stackoverflow
ARTIFICIAL_INTELLIGENCE
When is a heuristic admissible but not consistent?
When is a heuristic admissible but not consistent? Any consistent heuristic is also admissible. But when is a heuristic admissible but not consistent (monotone)? Please provide an example in which this is the case.
https://stackoverflow.com/questions/20516027/when-is-a-heuristic-admissible-but-not-consistent
search, artificial-intelligence, a-star, heuristics
1,386,756,041
se_79466340
stackoverflow
ARTIFICIAL_INTELLIGENCE
Azure OpenAI API Error: &quot;Missing required parameter: &#39;content&#39;&quot; when sending message with file attachment
Azure OpenAI API Error: &quot;Missing required parameter: &#39;content&#39;&quot; when sending message with file attachment I’m working with the Azure OpenAI API to upload a PDF file, create a thread, and send a message containing the uploaded file for summarization. However, when I try to send the message, I receive ...
https://stackoverflow.com/questions/79466340/azure-openai-api-error-missing-required-parameter-content-when-sending-mes
c#, azure, artificial-intelligence
1,740,481,655
se_79441522
stackoverflow
ARTIFICIAL_INTELLIGENCE
Agno Framework: Correct Unix Timestamp but Incorrect dd-mm-yyyy Conversion?
Agno Framework: Correct Unix Timestamp but Incorrect dd-mm-yyyy Conversion? I am using the Agno Framework to fetch historical stock data from Yahoo Finance. My agent correctly retrieves Unix timestamps in milliseconds, but when converting them to dd-mm-yyyy format, it returns incorrect dates. Example: Correct Unix Ti...
https://stackoverflow.com/questions/79441522/agno-framework-correct-unix-timestamp-but-incorrect-dd-mm-yyyy-conversion
python, artificial-intelligence, agent, phidata
1,739,622,881
se_79465469
stackoverflow
ARTIFICIAL_INTELLIGENCE
How do I implement a different type of scheduler after training my DDPM on a linear scheduler?
How do I implement a different type of scheduler after training my DDPM on a linear scheduler? I trained a Diffusion model (DDPM) using a linear scheduler defined by the following code: scheduler = DDPMScheduler( num_train_timesteps=1000, beta_start=0.0001, beta_end=0.02, beta_schedule="linear" ) Howe...
https://stackoverflow.com/questions/79465469/how-do-i-implement-a-different-type-of-scheduler-after-training-my-ddpm-on-a-lin
python, machine-learning, artificial-intelligence
1,740,460,449
se_79461120
stackoverflow
ARTIFICIAL_INTELLIGENCE
How can I fix InternalServerError 500 with AutoGen with DeepSeek in Azure?
How can I fix InternalServerError 500 with AutoGen with DeepSeek in Azure? I am trying to run this simple Python code: import os from autogen import AssistantAgent, UserProxyAgent llm_config = { "config_list": [ { "model": "DeepSeek-R1", "api_key": "XXX", "base_url": "h...
https://stackoverflow.com/questions/79461120/how-can-i-fix-internalservererror-500-with-autogen-with-deepseek-in-azure
azure, artificial-intelligence, ms-autogen, deepseek
1,740,308,546
se_76852637
stackoverflow
ARTIFICIAL_INTELLIGENCE
How to transcribe multiple audio files at once using Whisper finetuned model?
How to transcribe multiple audio files at once using Whisper finetuned model? TL;DR: I'm trying to transcribe multiple files together using Hugging face fine-tuned whisper ai model and extract the output as a single text file I have this code which works and transcribes an audio and shows its output as a string of tex...
https://stackoverflow.com/questions/76852637/how-to-transcribe-multiple-audio-files-at-once-using-whisper-finetuned-model
nlp, scripting, artificial-intelligence, google-colaboratory, openai-whisper
1,691,418,032
se_79238208
stackoverflow
ARTIFICIAL_INTELLIGENCE
Unity mlAgents not connecting to Unity
Unity mlAgents not connecting to Unity I followed a tutorial on how to set up mlagents in unity and that all mostly went smoothly. I got a simple scene set up like this: With 3 Walls that reset the Episode and give a negative reward and one "finishline" that rewards the AI when hit. I have a script for the carmovemen...
https://stackoverflow.com/questions/79238208/unity-mlagents-not-connecting-to-unity
unity-game-engine, artificial-intelligence, game-development, ml-agent
1,732,909,591
se_79457773
stackoverflow
ARTIFICIAL_INTELLIGENCE
&quot;TxtRecognizer.Selected.Text&quot; Power Apps Stop Working
&quot;TxtRecognizer.Selected.Text&quot; Power Apps Stop Working I have an application in Power Apps which uses the txtRecognizer object from AI Builder. It was working fine until this morning, all of sudden, every formula that uses the syntax txtRecognizer.Selected.Text are reporting errors. Like in the image below: E...
https://stackoverflow.com/questions/79457773/txtrecognizer-selected-text-power-apps-stop-working
artificial-intelligence, powerapps, powerapps-formula
1,740,149,936
se_79437451
stackoverflow
ARTIFICIAL_INTELLIGENCE
Trouble Creating GroupChat with Autogen: ValueError Related to `allowed_speaker_transitions_dict`
Trouble Creating GroupChat with Autogen: ValueError Related to `allowed_speaker_transitions_dict` I'm working on creating a group chat using the autogen library but encountering an error related to the allowed_speaker_transitions_dict. Here's a simplified version of my code: # Define the data fetch tool. data_search_a...
https://stackoverflow.com/questions/79437451/trouble-creating-groupchat-with-autogen-valueerror-related-to-allowed-speaker
python, azure, artificial-intelligence, agent, ms-autogen
1,739,472,592
se_78734964
stackoverflow
ARTIFICIAL_INTELLIGENCE
Ollama isnt using my gpu on a runpod.io pod
Ollama isnt using my gpu on a runpod.io pod I am testing different AI models on runpod.io. One of those models is dolphin-mixtral:8x22b. I followed Runpod's tutorial for setting up the pod with Ollama: https://docs.runpod.io/tutorials/pods/run-ollama, and I used the H100SXM with 80GB VRAM and 16 vCPU 125 GB RAM. Howev...
https://stackoverflow.com/questions/78734964/ollama-isnt-using-my-gpu-on-a-runpod-io-pod
pytorch, artificial-intelligence, ollama
1,720,693,703
se_79451573
stackoverflow
ARTIFICIAL_INTELLIGENCE
Is it possible to include Ollama directly in my Python project?
Is it possible to include Ollama directly in my Python project? I'd like to create a Python program with Ollama (llama3.2, or 3.3) included in my package, so that the user doesn't need to install it separately when installing my program. I've done it with Tesseract-OCR, but it doesn't seem to work there... Anyone know...
https://stackoverflow.com/questions/79451573/is-it-possible-to-include-ollama-directly-in-my-python-project
python, artificial-intelligence, windows-installer, pyinstaller, ollama
1,739,973,034
se_78174132
stackoverflow
ARTIFICIAL_INTELLIGENCE
TweetyProject for first order logic
TweetyProject for first order logic I'm trying to learn how to use coding for Logic Knowledge Representation and ultimately ML/AI. I'm trying to make a java Tweety code about first order logic run but I always get the same error: the formula is not closed. I know the meaning of a formula not being the in FOL, I just c...
https://stackoverflow.com/questions/78174132/tweetyproject-for-first-order-logic
java, artificial-intelligence, first-order-logic
1,710,652,230
se_79448963
stackoverflow
ARTIFICIAL_INTELLIGENCE
&#39;IChatClient&#39; does not contain a definition for &#39;CompleteStreamingAsync&#39;?
&#39;IChatClient&#39; does not contain a definition for &#39;CompleteStreamingAsync&#39;? I'm trying to follow this tutorial: https://learn.microsoft.com/en-us/dotnet/ai/quickstarts/quickstart-local-ai This is my source code: using Microsoft.Extensions.AI; using Microsoft.Extensions.AI.Ollama; namespace Chat { in...
https://stackoverflow.com/questions/79448963/ichatclient-does-not-contain-a-definition-for-completestreamingasync
c#, .net, artificial-intelligence
1,739,895,677
se_79445607
stackoverflow
ARTIFICIAL_INTELLIGENCE
Fastdup installation on Win10
Fastdup installation on Win10 I'm setting up a dev-environment to build a NN model for image classification using VSC on a win10 machine. Just an exercise, no special industrial practical solution. Before actually building the model it is useful to analyse the image using fastdup. The dev-enviroment seems to be doing ...
https://stackoverflow.com/questions/79445607/fastdup-installation-on-win10
python-3.x, artificial-intelligence
1,739,800,457
se_79448878
stackoverflow
ARTIFICIAL_INTELLIGENCE
Python Farm-haystack Dependencies
Python Farm-haystack Dependencies i am trying to implement a model using farm-haystack, however am having a dependency mismatch for the following libraries : transformers farm-haystack langchain pydantic fastapi uvicorn elasticsearch python-multipart, currently i have 2 versions of python installed on my machine (3.12...
https://stackoverflow.com/questions/79448878/python-farm-haystack-dependencies
python-3.x, nlp, artificial-intelligence, fastapi, haystack
1,739,894,755
se_68624554
stackoverflow
ARTIFICIAL_INTELLIGENCE
Spatial interpolation with Gaussian Process regression
Spatial interpolation with Gaussian Process regression I have a CSV file with 140 000 points (rows). Each row consists of: Longitude value. Latitude value. Subsidence value at specific points. I assume that these points are spatially correlated. I want to perform a spatial interpolation analysis of the area of the p...
https://stackoverflow.com/questions/68624554/spatial-interpolation-with-gaussian-process-regression
artificial-intelligence, geospatial, kriging, spatial-interpolation, gaussian-process
1,627,919,542
se_6848828
stackoverflow
ARTIFICIAL_INTELLIGENCE
What is the difference between Q-learning and SARSA?
What is the difference between Q-learning and SARSA? Although I know that SARSA is on-policy while Q-learning is off-policy, when looking at their formulas it's hard (to me) to see any difference between these two algorithms. According to the book Reinforcement Learning: An Introduction (by Sutton and Barto). In the S...
https://stackoverflow.com/questions/6848828/what-is-the-difference-between-q-learning-and-sarsa
artificial-intelligence, reinforcement-learning, q-learning, sarsa
1,311,788,789
se_79440021
stackoverflow
ARTIFICIAL_INTELLIGENCE
theta values for gradient descent not coherent
theta values for gradient descent not coherent i made a gradient descent code but it doesnt seem to work well import numpy as np from random import randint,random import matplotlib . pyplot as plt def calculh(theta, X): h = 0 h+=theta[0]*X # w*X h+= theta[-1] # +b return h def calculY(sigma, h) : ...
https://stackoverflow.com/questions/79440021/theta-values-for-gradient-descent-not-coherent
python, machine-learning, artificial-intelligence, gradient-descent, cost-based-optimizer
1,739,551,283
se_51687071
stackoverflow
ARTIFICIAL_INTELLIGENCE
Neural Networks without Calculus
Neural Networks without Calculus I am 14 years old and very interested in neural networks. I have been programming since I was 9 and I have recently discovered the world of AI and neural networks. Being 14 years old causes some limitations as for my understanding of mathematics and I don‘t know anything about calculus...
https://stackoverflow.com/questions/51687071/neural-networks-without-calculus
neural-network, artificial-intelligence
1,533,396,702
se_77481618
stackoverflow
ARTIFICIAL_INTELLIGENCE
How is Monte Carlo Tree Search Implemented
How is Monte Carlo Tree Search Implemented I am trying to understand how MCTS is actually implemented if I were trying to use it to win a game like TicTacToe against an opponent. I understand how the algorithm creates the search tree through Selection, Expansion, Simulation and Backpropagation, what I don't understand...
https://stackoverflow.com/questions/77481618/how-is-monte-carlo-tree-search-implemented
artificial-intelligence, monte-carlo-tree-search
1,699,973,804
se_77758436
stackoverflow
ARTIFICIAL_INTELLIGENCE
Autogen response in a variable
Autogen response in a variable import autogen from nicegui import ui, context from uuid import uuid4 # AutoGen Configuration config_list = [ { 'model': 'gpt-4', 'api_key': '' } ] llm_config = { 'seed': 42, 'config_list': config_list, 'temperature': 0.2 } # Initialize AutoGen Agen...
https://stackoverflow.com/questions/77758436/autogen-response-in-a-variable
python, artificial-intelligence, large-language-model, ms-autogen
1,704,372,932
se_78356777
stackoverflow
ARTIFICIAL_INTELLIGENCE
What does &quot;I&quot; in the section &quot;_IQ&quot; and &quot;_M&quot; mean in this name &quot;Meta-Llama-3-8B-Instruct-IQ3_M.gguf&quot;?
What does &quot;I&quot; in the section &quot;_IQ&quot; and &quot;_M&quot; mean in this name &quot;Meta-Llama-3-8B-Instruct-IQ3_M.gguf&quot;? Appreciate if someone could let me know what does "I" in the section "_IQ" and "_M" mean in this name "Meta-Llama-3-8B-Instruct-IQ3_M.gguf"??? I searched and found what does the ...
https://stackoverflow.com/questions/78356777/what-does-i-in-the-section-iq-and-m-mean-in-this-name-meta-llama-3-8b-i
artificial-intelligence, large-language-model, llama, ollama, lm-studio
1,713,578,504
se_77150521
stackoverflow
ARTIFICIAL_INTELLIGENCE
Eleven Labs API not working, is ffmpeg not installed properly?
Eleven Labs API not working, is ffmpeg not installed properly? Traceback (most recent call last): File "C:\Users\danim\OneDrive\Desktop\programming\APItests.py", line 9, in <module> play(audio) File "C:\Users\danim\PycharmProjects\EXAM\venv\lib\site-packages\elevenlabs\utils.py", line 25, in play raise Val...
https://stackoverflow.com/questions/77150521/eleven-labs-api-not-working-is-ffmpeg-not-installed-properly
python, ffmpeg, artificial-intelligence
1,695,301,497
se_79433111
stackoverflow
ARTIFICIAL_INTELLIGENCE
Is there a generic way to escape special characters in prompts when using Semantic Kernel?
Is there a generic way to escape special characters in prompts when using Semantic Kernel? This is my prompt invocation in C#: var result = await kernel.InvokePromptAsync(prompt, new(executionSettings)); It works like a charm, except if the prompt contains something like this: { bla } {{ bla }} { $bla } {{ bl...
https://stackoverflow.com/questions/79433111/is-there-a-generic-way-to-escape-special-characters-in-prompts-when-using-semant
artificial-intelligence, large-language-model, semantic-kernel
1,739,364,433
se_3506948
stackoverflow
ARTIFICIAL_INTELLIGENCE
Recognizing barcodes with AI
Recognizing barcodes with AI As a pet project/learning experience (no this is not homework) I'm working on software to recognize barcodes from a photograph. I'm not looking for software or a library that does it - instead I'm using this as a learning exercise that I'm blogging about and will post up on Codeplex. I h...
https://stackoverflow.com/questions/3506948/recognizing-barcodes-with-ai
c#, artificial-intelligence, barcode
1,282,079,115
se_79430891
stackoverflow
ARTIFICIAL_INTELLIGENCE
Tic-Tac-Toe minimax algorithm
Tic-Tac-Toe minimax algorithm I have been trying to implement a minimax algorithm for Tic-Tac-Toe based off some of my University lectures. There are two states after the first move has been made that both have a minimax value of 0 according to my algorithm, although I know that one is more favourable, the bot does no...
https://stackoverflow.com/questions/79430891/tic-tac-toe-minimax-algorithm
c#, artificial-intelligence, tic-tac-toe, minimax
1,739,295,717
se_59183735
stackoverflow
ARTIFICIAL_INTELLIGENCE
Crossover operators that only produce one child
Crossover operators that only produce one child While studying genetic algorithms, I've come across various crossover operators for the TSP problem. Some of these take two parents and produce 2 children (offspring), such as the alternating edge operator, for example. Others, such as partially mapped crossover (PMX) or...
https://stackoverflow.com/questions/59183735/crossover-operators-that-only-produce-one-child
artificial-intelligence, genetic-algorithm, evolutionary-algorithm, genetic-programming, crossover
1,575,489,187
se_79071784
stackoverflow
ARTIFICIAL_INTELLIGENCE
How to solve genetic algorithm stagnation in the Zen garden problem?
How to solve genetic algorithm stagnation in the Zen garden problem? I have a genetic algorithm problem but I'm stuck in local optimum. As you can see in the snippet, it simply can't solve the problem, no matter how many gens or genomes I add to the generation. Code: import random class ZenGarden: def __init__(se...
https://stackoverflow.com/questions/79071784/how-to-solve-genetic-algorithm-stagnation-in-the-zen-garden-problem
python, artificial-intelligence, genetic-algorithm
1,728,501,986