mklarqvist / ai-playground Goto Github PK
View Code? Open in Web Editor NEWPlayground for various AI projects and demos
Home Page: https://mdrk.io
License: MIT License
Playground for various AI projects and demos
Home Page: https://mdrk.io
License: MIT License
def f(x, a, c):
return np.power((np.power(x,3.)a + xca) / (xVariable(4,0)), 4) *
np.sin(xa)/np.power(xa,5) - np.cos(x*c) <==== your code has 5
x, a, c = Variable(10, 1), Variable(2, 0), Variable(1.5, 0)
ret = f(x,a,c)
print("Differentiate with respect to x ",ret)
Variable(f=2.652201219184028, d=28710.98684562215) <==== your code with 5 what??????
def f(x, a, c):
return np.power((np.power(x,3.)a + xca) / (xVariable(4,0)), 4) *
np.sin(xa)/np.power(xa,5.) - np.cos(x*c) <==== corrected code with 5.
x, a, c = Variable(10, 1), Variable(2, 0), Variable(1.5, 0)
ret = f(x,a,c)
print("Differentiate with respect to x ",ret)
Variable(f=2.652201219184028, d=3.2126995936768443) <==== results of corrected code with 5.
Python version 3.9.13
Windows 10
numpy version 1.26.0
THank you again for uploading your essays and codes.
Hi,
This is the only place I found I could ask that you update the above referenced page at mdrk.io Can you update and add values for fit2[1] and fit2[0].
predictions_manual = x2[:,1] * fit2[1] + fit2[0]
I realize its to be a manual entry?
Still I am not geting your results for the table of epoch, beta, b, loss
Perhaps you could upload your code along with code from articles on intro to automatic differentiation to your github page?
As a side note. You have all these additional graphs that do not have any code to plot them.....
Anyway thanks for your articles.
When I run :
docsearch = Chroma.from_documents(texts, embeddings)
I get this error:
AttributeError Traceback (most recent call last)
in <cell line: 1>()
----> 1 docsearch = Chroma.from_documents(texts, embeddings)
1 frames
/usr/local/lib/python3.10/dist-packages/langchain/vectorstores/chroma.py in (.0)
442 Chroma: Chroma vectorstore.
443 """
--> 444 texts = [doc.page_content for doc in documents]
445 metadatas = [doc.metadata for doc in documents]
446 return cls.from_texts(
AttributeError: 'str' object has no attribute 'page_content'
And I did run every cell before it not sure what is the issue?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.