Updated to add logistic regression godot example

This commit is contained in:
Alejandro Saucedo 2020-09-26 16:37:24 +01:00
parent 63426281fe
commit 9308b83af4
50 changed files with 101078 additions and 0 deletions

View file

@ -0,0 +1,28 @@
extends Node2D
# Called when the node enters the scene tree for the first time.
func _ready():
print("hello")
# Use existing node
print($CustomKomputeNode.get_total())
$CustomKomputeNode.add(10)
print($CustomKomputeNode.get_total())
$CustomKomputeNode.add(10)
print($CustomKomputeNode.get_total())
# Create new instance
var s = KomputeSummatorNode.new()
# This will print 0 as it's a new instance
print(s.get_total())
# Now we can again send further commands
s.add(10)
print(s.get_total())
s.add(10)
print(s.get_total())