Skip to content

Commit 18d04b6

Browse files
committed
Feat: Expose prediction model
1 parent 9e86fb3 commit 18d04b6

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

src/tsp-model/AbstractModel.js

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -278,6 +278,18 @@ AbstractModel.prototype = Object.assign( Object.create( SceneInitializer.prototy
278278
return this.layers;
279279

280280
},
281+
282+
/**
283+
* return Actual prediction model,
284+
* Developer can directly manipulate the model,
285+
* for example, get model summary, make predictions.
286+
*/
287+
288+
getPredictionModel: function() {
289+
290+
return this.resource;
291+
292+
},
281293

282294
/**
283295
* init(), Init model,

0 commit comments

Comments
 (0)