Class: Wandb::Artifact

Inherits:
Object
  • Object
show all
Defined in:
lib/wandb.rb

Overview

Artifact class

Instance Method Summary collapse

Constructor Details

#initialize(artifact) ⇒ Artifact

Returns a new instance of Artifact.



138
139
140
# File 'lib/wandb.rb', line 138

def initialize(artifact)
  @artifact = artifact
end

Instance Method Details

#__pyptr__Object



142
143
144
# File 'lib/wandb.rb', line 142

def __pyptr__
  @artifact
end

#add_dir(local_dir, name = nil) ⇒ Object



158
159
160
# File 'lib/wandb.rb', line 158

def add_dir(local_dir, name = nil)
  @artifact.add_dir(local_dir, name)
end

#add_file(local_path, name = nil) ⇒ Object



154
155
156
# File 'lib/wandb.rb', line 154

def add_file(local_path, name = nil)
  @artifact.add_file(local_path, name)
end

#get_path(name) ⇒ Object



162
163
164
# File 'lib/wandb.rb', line 162

def get_path(name)
  @artifact.get_path(name)
end

#metadataObject



166
167
168
# File 'lib/wandb.rb', line 166

def 
  @artifact.
end

#metadata=(new_metadata) ⇒ Object



170
171
172
# File 'lib/wandb.rb', line 170

def metadata=()
  @artifact. = 
end

#nameObject



146
147
148
# File 'lib/wandb.rb', line 146

def name
  @artifact.name
end

#saveObject



174
175
176
# File 'lib/wandb.rb', line 174

def save
  @artifact.save
end

#typeObject



150
151
152
# File 'lib/wandb.rb', line 150

def type
  @artifact.type
end