This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| require 'chainer' | |
| require 'fileutils' | |
| require 'tmpdir' | |
| C = Chainer | |
| CT = C::Training | |
| CI = C::Iterators | |
| CTE = CT::Extensions | |
| class CNN < C::Chain |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| require 'tk' | |
| #セールスマンの人数 | |
| SALESMEN = 300 | |
| #ポイントの数 | |
| POINTS = 30 | |
| #世代数 | |
| LASTG = 1000 | |
| #キャンバスの横幅 | |
| WIDTH = 300 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| require 'gtk3' | |
| def on_shimane_clicked | |
| puts "島根県が選択されました" | |
| end | |
| b = Gtk::Builder.new(file: "sample.glade") | |
| w = b.get_object "win" | |
| b.connect_signals{|handler| method(handler)} | |
| w.signal_connect(:destroy){Gtk.main_quit} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| require 'datasets-gdk-pixbuf' | |
| require 'gtk3' | |
| n = ARGV[0].to_i | |
| w = Gtk::Window.new | |
| w.set_size_request(600,600) | |
| flowbox = Gtk::FlowBox.new | |
| flowbox.valign = :start | |
| flowbox.selection_mode = :none |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| require 'benchmark' | |
| require 'matrix' | |
| require 'numo/narray' | |
| require 'cumo' | |
| SIZE = 2000 | |
| NUM = 1000 | |
| Xumo = [Numo, Cumo] | |
| Types = %i[UInt8 Int32 SFloat] |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| require 'pycall' | |
| require 'pycall/import' | |
| include PyCall::Import | |
| require 'matplotlib/iruby' | |
| Matplotlib::IRuby.activate | |
| pyimport :pandas, as: :pd | |
| pyimport :seaborn, as: :sns | |
OlderNewer