Normal view
- C++26: Basic linear algebra algorithms applied to Machine learning.An implementation of the Neural Network backpropagation learning algorithm in C++ using the BLAS proposal in P1673.
C++26: Basic linear algebra algorithms applied to Machine learning.
- Subtle clues that an AI is smarter than it appears โ worldbuilding.stackexchange.comContext: A world similar to ours, in which AI is deeply integrated into various aspects of life. For example, In office buildings, AI can detect if someone is feeling cold and adjust the cooling ...
Subtle clues that an AI is smarter than it appears โ worldbuilding.stackexchange.com
- Does the use of AI make someone more intelligent? โ philosophy.stackexchange.comDoes the use of AI make someone more intelligent? I think I remember this coming up in the SEP, with respect to whether access to the internet means I "know" (or similar) everything that ...
Does the use of AI make someone more intelligent? โ philosophy.stackexchange.com
- is this appropriate trigram model?import torch import torch.nn.functional as F words = open('names.txt', 'r').read().splitlines() #['emma', 'olivia', 'ava', 'isabella'...] chars = ['.','a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j', 'k', 'l', 'm', 'n', 'o', 'p', 'q', 'r', 's', 't', 'u', 'v', 'w', 'x', 'y', 'z'] def stoi(string): """ Converts a string to an integer using the chars list as the base. """ result = 0 base = len(chars) for char in string: result = result * base + chars.index(char)
is this appropriate trigram model?
import torch
import torch.nn.functional as F
words = open('names.txt', 'r').read().splitlines() #['emma', 'olivia', 'ava', 'isabella'...]
chars = ['.','a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j', 'k', 'l', 'm', 'n', 'o', 'p', 'q', 'r', 's', 't', 'u', 'v', 'w', 'x', 'y', 'z']
def stoi(string):
"""
Converts a string to an integer using the chars list as the base.
"""
result = 0
base = len(chars)
for char in string:
result = result * base + chars.index(char)
return result
def itos(num):
"""
Converts an integer to a string using the chars list as the base.
"""
result = []
base = len(chars)
while num > 0:
result.append(chars[num % base])
num //= base
result.reverse()
return ''.join(result)
xs = []
ys = []
for w in words:
chs = ['.'] + list(w) + ['.']
for ch1, ch2, ch3 in zip(chs,chs[1:],chs[2:]):
xs.append(stoi(ch1+ch2))
ys.append(stoi(ch3))
xs = torch.tensor(xs)
ys = torch.tensor(ys)
xenc = F.one_hot(xs, num_classes=729).float()
W = torch.randn((729,27), requires_grad=True)
for i in range(300):
logits = xenc @ W
counts = logits.exp()
probs = counts / counts.sum(1, keepdims=True)
loss = -probs[torch.arange(xs.nelement()), ys].log().mean()
if i % 10 == 0:
print(loss.item())
W.grad = None
loss.backward()
W.data += -40 * W.grad
After I watched Andrej Karpathy's bigram video(https://www.youtube.com/watch?v=PaCmpygFfXo), I made this trigram model as an exercise. Is this a appropriate trigram model? Please tell me if there are some errors or bugs and improvements.
- How to use safe RL with General constraints?I have read a lot of articles about safe RL, and found that they are all methods to solve the CMDP framework, they are to reduce the cost of each step of action to set up a constraint to reduce the probability of unsafe action, but if the constraint is not the constraint of a single step of action, but the constraint of the entire trajectory of the action, it seems that there is no relevant article I wonder if there's any way to solve a problem like this, or a similar scenario problem
How to use safe RL with General constraints?
I have read a lot of articles about safe RL, and found that they are all methods to solve the CMDP framework, they are to reduce the cost of each step of action to set up a constraint to reduce the probability of unsafe action, but if the constraint is not the constraint of a single step of action, but the constraint of the entire trajectory of the action, it seems that there is no relevant article
I wonder if there's any way to solve a problem like this, or a similar scenario problem
- Is there any C# code to fetch evaluation metrics data from Azure Ai studio [closed]I was trying to fetch the data of evaluation metrics like groundedness, coherence etc from Azure Ai studio. Since the Microsoft documentation itself has given Python code, but there is no code in c#. I just want to know if there are any libraries in c# that supports the same. I have tried Metrics library for c# , but it is not giving what I expected. Do anyone have any knowledge on this? Please help I have tried Metrics library for c# , but it is not giving what I expected
Is there any C# code to fetch evaluation metrics data from Azure Ai studio [closed]
I was trying to fetch the data of evaluation metrics like groundedness, coherence etc from Azure Ai studio. Since the Microsoft documentation itself has given Python code, but there is no code in c#. I just want to know if there are any libraries in c# that supports the same. I have tried Metrics library for c# , but it is not giving what I expected. Do anyone have any knowledge on this? Please help
I have tried Metrics library for c# , but it is not giving what I expected
- Why isn't the German police allowed to use PimEyes (social network tracking via face recognition)? โ politics.stackexchange.comI read about the capture of Daniela Klette, via Google Translate: In Germany, the criminal police claimed that they were not authorized to use this type of AI [PimEyes], due to data protection ...
Why isn't the German police allowed to use PimEyes (social network tracking via face recognition)? โ politics.stackexchange.com
- Unveiling the Power of TensorFlow 2.x: A Comprehensive Primer on Execution Modes and Model Building APIsThis article provides a comprehensive guide to TensorFlow 2.x, covering its execution modes, model building APIs, and insights for choosing the right approach for machine learning projects.
Unveiling the Power of TensorFlow 2.x: A Comprehensive Primer on Execution Modes and Model Building APIs
- Unveiling the Power of TensorFlow 2.x: A Comprehensive Primer on Execution Modes and Model Building APIsThis article provides a comprehensive guide to TensorFlow 2.x, covering its execution modes, model building APIs, and insights for choosing the right approach for machine learning projects.
Unveiling the Power of TensorFlow 2.x: A Comprehensive Primer on Execution Modes and Model Building APIs
- Autonomous Movement of Objects and Characters in a GameHow to control game elements based on predefined conditions
Autonomous Movement of Objects and Characters in a Game
- Does or could ChatGPT understand text? โ philosophy.stackexchange.comThe following is an intro from rodsmith.nz which might be considered a radical analysis of ChatGPT, but it's based on the science. It concludes that the common understanding of ChatGPT (trained on ...
Does or could ChatGPT understand text? โ philosophy.stackexchange.com
- CodeProject.AI Module creation: A full walkthrough in PythonThe full walkthrough of a bare bones module for CodeProject.AI using Python
CodeProject.AI Module creation: A full walkthrough in Python
- CodeProject.AI Module creation: A full walkthrough in PythonThe full walkthrough of a bare bones module for CodeProject.AI using Python
CodeProject.AI Module creation: A full walkthrough in Python
- Become machine learning engineer [closed]I have completed my masters in computer application few years ago.Now Im interested to start my career in Machine Learning.But while I google it says that I need to start my career as Data analyst to become machine learning engineer.
Become machine learning engineer [closed]
I have completed my masters in computer application few years ago.Now Im interested to start my career in Machine Learning.But while I google it says that I need to start my career as Data analyst to become machine learning engineer.
- How Could An AI Transplant Itself To An Organic Body โ worldbuilding.stackexchange.comTo elucidate what I'm asking: I have written 3.9k words about the history of one of my "evil" factions, which is a heavily religious, matriarchal, caste society that has subjected itself to ...
How Could An AI Transplant Itself To An Organic Body โ worldbuilding.stackexchange.com
- Short story about a self-aware machine that time travels; the title may have been an acronym โ scifi.stackexchange.comI need some help finding the name of a short story in an anthology I read. I think it may have been written in first person about a man-made machine intelligence that causes or survives through a ...
Short story about a self-aware machine that time travels; the title may have been an acronym โ scifi.stackexchange.com
- Cybernetic AIs get hacked, while sentient AGIs are immune? โ worldbuilding.stackexchange.comFirst question, I hope I do this right! I have a world in which most of the Solar System (including Mars, some Lagrange points of Venus, and most of the gas giantsโ moons) have been colonized set a ...
Cybernetic AIs get hacked, while sentient AGIs are immune? โ worldbuilding.stackexchange.com
- Serverless Development Experience for Embedded Computer VisionLearn to create real-time computer vision applications with a couple of Python functions and a model URI.