Skip to content

Commit

Permalink
Merge branch 'main' into dependabot/pip/testdata/xgboost-1.6.2
Browse files Browse the repository at this point in the history
  • Loading branch information
getumen authored Aug 29, 2022
2 parents 3ec11a1 + b59ffad commit 5646fe4
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion annotator_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ func TestAnnotator(t *testing.T) {
}
}

dMatrix, err := treelite.CreaetFromMat(feature, nRow, nCol, float32(math.NaN()))
dMatrix, err := treelite.CreateFromMat(feature, nRow, nCol, float32(math.NaN()))
if err != nil {
t.Fatal(err)
}
Expand Down
4 changes: 2 additions & 2 deletions dmatrix.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,8 @@ type DMatrix struct {
element int
}

// CreaetFromMat creates a dense DMatrix from the given data
func CreaetFromMat(
// CreateFromMat creates a dense DMatrix from the given data
func CreateFromMat(
data []float32,
nrow, ncol int,
missing float32,
Expand Down
2 changes: 1 addition & 1 deletion dmatrix_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ func TestDMatrix_CreaetFromMat(t *testing.T) {
ncol := 3
nonZero := 6

target, err := treelite.CreaetFromMat(data, nrow, ncol, float32(math.NaN()))
target, err := treelite.CreateFromMat(data, nrow, ncol, float32(math.NaN()))
if err != nil {
t.Fatal(err)
}
Expand Down
2 changes: 1 addition & 1 deletion example_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ import (
func Example() {
data, nRow, nCol := loadData()

dMatrix, err := treelite.CreaetFromMat(data, nRow, nCol, float32(math.NaN()))
dMatrix, err := treelite.CreateFromMat(data, nRow, nCol, float32(math.NaN()))
if err != nil {
log.Fatal(err)
}
Expand Down
2 changes: 1 addition & 1 deletion predictor_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ func TestPredictor_PredictBatch(t *testing.T) {
}
}

dMatrix, err := treelite.CreaetFromMat(feature, nRow, nCol, float32(math.NaN()))
dMatrix, err := treelite.CreateFromMat(feature, nRow, nCol, float32(math.NaN()))
if err != nil {
t.Fatal(err)
}
Expand Down

0 comments on commit 5646fe4

Please sign in to comment.