Skip to content

Fix outdated free variables syntax#1

Open
hugoabonizio wants to merge 1 commit intopbrusco:masterfrom
hugoabonizio:master
Open

Fix outdated free variables syntax#1
hugoabonizio wants to merge 1 commit intopbrusco:masterfrom
hugoabonizio:master

Conversation

@hugoabonizio
Copy link

Currently the example returns this error

$ crystal classification_example.cr 
Error in classification_example.cr:10: instantiating 'Array(Array(Float32))#shape()'

puts "Shapes: X: #{x.shape}, y: #{y.shape}"
                     ^~~~~

in /home/hugo/gh/crystal-learn/lib/array.cr:130: undefined constant T

def get_shape(arr : Array(Array(T)))
                                ^

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant