Skip to content

Conversation

@mrkn
Copy link
Member

@mrkn mrkn commented Mar 5, 2019

I wrote descriptions for sparse tensor classes.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I put this class in internal namespace to remove it from documentation targets.

@mrkn mrkn force-pushed the sparse_tensor_doc branch from a578992 to 83cab03 Compare March 5, 2019 05:16
/// values in sparse tensor
/// \brief EXPERIMENTAL: The base class for the index of a sparse tensor
///
/// SparseIndex are used to represent where is non-zero values in a
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is less clear than it could be, maybe rewrite as "SparseIndex describes where the non-zero elements are within a SparseTensor."

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I rewrote the sentence.

/// SparseIndex are used to represent where is non-zero values in a
/// SparseTensor.
///
/// There are several ways of the index representation. The format_id is used
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think it'd be useful to note specifically that there is a single derived class for each possible value of format_id (SparseTensorFormat::COO -> SparseCOOIndex and SparseTensorFormat::CSR -> SparseCSRIndex)

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I tried to describe that you mentioned.
Could you please review it again?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!
Also this sentence isn't quite grammatically correct. Could you use -ways of the index representation+ways to represent this?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for your feedback. I fixed the incorrect representation.

@bkietz
Copy link
Member

bkietz commented Mar 7, 2019

The Travis failure looks spurious to me

@mrkn
Copy link
Member Author

mrkn commented Mar 8, 2019

@kou Could you understand what is happened on CI here?
https://travis-ci.org/apache/arrow/jobs/502648473#L2502

@kou
Copy link
Member

kou commented Mar 8, 2019

Umm. I didn't see this SEGV.
I can't debug it without backtrace or reproducible environment.

@codecov-io
Copy link

codecov-io commented Mar 8, 2019

Codecov Report

Merging #3810 into master will increase coverage by 20.02%.
The diff coverage is 100%.

Impacted file tree graph

@@             Coverage Diff             @@
##           master    #3810       +/-   ##
===========================================
+ Coverage   67.76%   87.79%   +20.02%     
===========================================
  Files         468      710      +242     
  Lines       58721    86896    +28175     
  Branches     1252     1252               
===========================================
+ Hits        39793    76287    +36494     
+ Misses      18811    10496     -8315     
+ Partials      117      113        -4
Impacted Files Coverage Δ
cpp/src/arrow/sparse_tensor.h 87.5% <100%> (+87.5%) ⬆️
go/arrow/math/uint64_sse4_amd64.go 0% <0%> (-100%) ⬇️
go/arrow/math/float64_sse4_amd64.go 0% <0%> (-100%) ⬇️
go/arrow/memory/memory_sse4_amd64.go 0% <0%> (-100%) ⬇️
go/arrow/math/int64_sse4_amd64.go 0% <0%> (-100%) ⬇️
python/pyarrow/_plasma.pyx 75.6% <0%> (-0.26%) ⬇️
go/arrow/math/float64_amd64.go 33.33% <0%> (ø) ⬆️
cpp/src/plasma/thirdparty/ae/ae.c 72.03% <0%> (ø) ⬆️
go/arrow/math/int64_amd64.go 33.33% <0%> (ø) ⬆️
go/arrow/math/uint64_amd64.go 33.33% <0%> (ø) ⬆️
... and 420 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 1a0e976...9c4fe14. Read the comment docs.

@kou
Copy link
Member

kou commented Mar 9, 2019

I've fixed the SEGV.

Copy link
Member

@wesm wesm left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

+1. Thanks all!

@wesm wesm closed this in f83a282 Mar 13, 2019
emkornfield pushed a commit to emkornfield/arrow that referenced this pull request Mar 13, 2019
I wrote descriptions for sparse tensor classes.

Author: Kenta Murata <mrkn@mrkn.jp>

Closes apache#3810 from mrkn/sparse_tensor_doc and squashes the following commits:

9c4fe14 <Kenta Murata> Fix incorrect English
522a982 <Kenta Murata> Modify comments following review comments
83cab03 <Kenta Murata>  Put SparseIndexBase<> class in internal namespace
6cd13e2 <Kenta Murata>  Write descriptions of sparse tensor
@mrkn mrkn deleted the sparse_tensor_doc branch April 25, 2019 06:14
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.

5 participants