-
-
Notifications
You must be signed in to change notification settings - Fork 74
Feature/89 rload fn #90
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
17 commits
Select commit
Hold shift + click to select a range
35a604e
Merge branch 'master' of https://github.com/stan-dev/cmdstanpy
mitzimorris d3b6bf2
updating version
mitzimorris 54f04a3
opt_lvl 3
mitzimorris 35db102
Merge branch 'master' of https://github.com/stan-dev/cmdstanpy
mitzimorris d0e55a0
Merge branch 'master' of https://github.com/stan-dev/cmdstanpy
mitzimorris 34535b6
add rload
mitzimorris 3175df7
update version
mitzimorris 0a2a926
adding unit test, test data
mitzimorris ee95f9a
adding unit test, test data
mitzimorris fadddfe
lint fix
mitzimorris 5af7ed3
updating docstring, more tests
mitzimorris 5a41b8b
cleanup rload parse logic
mitzimorris 6551a69
cleanup rload parse logic
mitzimorris ac34566
cleanup rload parse logic
mitzimorris 1d07295
use rload in read_rdump_metric; tests for scalar float, sci notation
mitzimorris 08693c8
test data files cleanup
mitzimorris 70ec077
code cleanup
mitzimorris File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
__version__ = '0.3.1' | ||
__version__ = '0.4.1' |
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
inv_metric <- (0.787405, 0.884987, 1.19869) | ||
inv_metric <- 0.787405 |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
d <- 4 | ||
d_v1 <- structure(c(1, 2, 3, 4), .Dim = c(4)) | ||
d_v2 <- structure(c(15, 16, 17, 18), .Dim = c(4)) | ||
d_rv1 <- structure(c(10, 20, 30, 40), .Dim = c(4)) | ||
d_rv2 <- structure(c(101, 201, 301, 401), .Dim = c(4)) | ||
d_v_ar <- | ||
structure(c(100, 200, 300, 400, 500, 600, 700, 800, 900, 1000, 1100, 1200, | ||
1300, 1400, 1500, 1600), | ||
.Dim = c(4, 4)) | ||
d_rv_ar <- | ||
structure(c(1000, 2000, 3000, 4000, 5000, 6000, 7000, 8000, 9000, 10000, | ||
11000, 12000, 13000, 14000, 15000, 16000), | ||
.Dim = c(4, 4)) | ||
d_m <- | ||
structure(c(1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16), | ||
.Dim = c(4, 4)) | ||
d_m_ar <- | ||
structure(c(1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, | ||
20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, | ||
39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, | ||
58, 59, 60, 61, 62, 63, 64), | ||
.Dim = c(4, 4, 4)) | ||
|
||
|
||
d_m2 <- structure(c(1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16),.Dim=c(2,8)) | ||
|
||
d_m3<-structure(c(1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16),.Dim=c(1,16)) | ||
|
||
d_m4 <- structure(c(1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16),.Dim = c(8, 2)) |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
d <- c('C1', 'C2', 'C3') |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
d <- 4 | ||
d_m_ar <- | ||
structure(c(1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, | ||
20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, | ||
39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, | ||
|
||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
d_m_ar <- |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
"N" <- | ||
128 | ||
"M" <- | ||
2 | ||
"y" <- | ||
c(0, 1, 1, 1, 1, 1, 1, 1, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, | ||
1, 1, 1, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 1, 1, 1, 1, 1, 1, 0, | ||
1, 1, 1, 1, 1, 0, 1, 0, 1, 1, 1, 1, 0, 1, 1, 1, 1, 1, 0, 1, 1, | ||
1, 1, 0, 0, 0, 0, 0, 1, 1, 0, 1, 1, 0, 1, 1, 1, 1, 1, 0, 0, 1, | ||
1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 1, 0, 1, 0, 1, 0, 1, 1, 1, 0, | ||
1, 1, 0, 1, 1, 1, 1, 1, 1, 0, 1, 1, 1, 1, 0, 1, 1, 1, 1, 1, 0, | ||
1, 1, 0) |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,56 @@ | ||
N <- | ||
128 | ||
M <- | ||
2 | ||
y <- | ||
c(0, 1, 1, 1, 1, 1, 1, 1, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, | ||
1, 1, 1, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 1, 1, 1, 1, 1, 1, 0, | ||
1, 1, 1, 1, 1, 0, 1, 0, 1, 1, 1, 1, 0, 1, 1, 1, 1, 1, 0, 1, 1, | ||
1, 1, 0, 0, 0, 0, 0, 1, 1, 0, 1, 1, 0, 1, 1, 1, 1, 1, 0, 0, 1, | ||
1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 1, 0, 1, 0, 1, 0, 1, 1, 1, 0, | ||
1, 1, 0, 1, 1, 1, 1, 1, 1, 0, 1, 1, 1, 1, 0, 1, 1, 1, 1, 1, 0, | ||
1, 1, 0) | ||
x <- | ||
structure(c(1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, | ||
1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, | ||
1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, | ||
1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, | ||
1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, | ||
1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, | ||
1, 1, 1, 1, 1, 1, 1.3297992629225, 1.2724293214294, 0.414641434456408, | ||
-1.53995004190371, -0.928567034713538, -0.29472044679056, -0.00576717274753696, | ||
2.40465338885795, 0.76359346114046, -0.799009248989368, -1.14765700923635, | ||
-0.289461573688223, -0.299215117897316, -0.411510832795067, 0.252223448156132, | ||
-0.891921127284569, 0.435683299355719, -1.23753842192996, -0.224267885278309, | ||
0.377395645981701, 0.133336360814841, 0.804189509744908, -0.0571067743838088, | ||
0.503607972233726, 1.08576936214569, -0.69095383969683, -1.28459935387219, | ||
0.046726172188352, -0.235706556439501, -0.542888255010254, -0.433310317456782, | ||
-0.649471646796233, 0.726750747385451, 1.1519117540872, 0.992160365445798, | ||
-0.429513109491881, 1.23830410085338, -0.279346281854269, 1.75790308981071, | ||
0.560746090888056, -0.452783972553158, -0.832043296117832, -1.16657054708471, | ||
-1.0655905803883, -1.563782051071, 1.15653699715018, 0.83204712857239, | ||
-0.227328691424755, 0.266137361672105, -0.376702718583628, 2.44136462889459, | ||
-0.795339117255372, -0.0548774737115786, 0.250141322854153, 0.618243293566247, | ||
-0.172623502645857, -2.22390027400994, -1.26361438497058, 0.358728895971352, | ||
-0.0110454784656636, -0.940649162618608, -0.115825322156954, | ||
-0.814968708869917, 0.242263480859686, -1.4250983947325, 0.36594112304922, | ||
0.248412648872596, 0.0652881816716207, 0.0191563916602738, 0.257338377155533, | ||
-0.649010077708898, -0.119168762418038, 0.66413569989411, 1.10096910219409, | ||
0.14377148075807, -0.117753598165951, -0.912068366948338, -1.43758624082998, | ||
-0.797089525071965, 1.25408310644997, 0.77214218580453, -0.21951562675344, | ||
-0.424810283377287, -0.418980099421959, 0.996986860909106, -0.275778029088027, | ||
1.2560188173061, 0.646674390495345, 1.29931230256343, -0.873262111744435, | ||
0.00837095999603331, -0.880871723252545, 0.59625901661066, 0.119717641289537, | ||
-0.282173877322451, 1.45598840106634, 0.229019590694692, 0.996543928544126, | ||
0.781859184600258, -0.776776621764597, -0.615989907707918, 0.0465803028049967, | ||
-1.13038577760069, 0.576718781896486, -1.28074943178832, 1.62544730346494, | ||
-0.500696596002705, 1.67829720781629, -0.412519887482398, -0.97228683550556, | ||
0.0253828675878054, 0.0274753367451927, -1.68018272239593, 1.05375086302862, | ||
-1.11959910457218, 0.335617209968815, 0.494795767113158, 0.138052708711737, | ||
-0.118792025778828, 0.197684262345795, -1.06869271125479, -0.803213217364741, | ||
-1.11376513631953, 1.58009168370384, 1.49781876103841, 0.262645458662762, | ||
-1.23290119957126, -0.00372353379218051), .Dim = c(128L, 2L)) | ||
|
||
a <- 1.008 | ||
b <- -1.008 | ||
c <- -1.008e32 |
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
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is fine, larger than RAM files are not really that common.