cre_property_matcher 0.1.4 → 0.1.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: f584f1571f7d2a03ce354e0129abbb396e742364
4
- data.tar.gz: 17f742841e7dda0a78e52c8bbf5a4e25e09dd5f5
3
+ metadata.gz: 264eb4d47d5c85a0799d369a4fb27d58d32ce84e
4
+ data.tar.gz: 861698c8e9152ad6f457af4d640b762db96d9fdc
5
5
  SHA512:
6
- metadata.gz: 10322269710dc568315a0e94e8bf90737b767d3debd5b44c6c8d96afe657b89be9cff0a11660d40c1099915379269be9d849aa5e73bfeb46aa7ebcfd16220ca7
7
- data.tar.gz: 58d116ebb0e5abd0225488850d4c203b3588c8a84fecee237c5519f1f72dc6e8399549603f66ed4ce22c54f1e52f123a7eb76a3891c5c4473e492568bf842569
6
+ metadata.gz: b7fa4a1989158bdc497d46ee2252dafa1b17b1928ab2afcd7e12aaed5d39372550d5bd39463dbcaee3c24428cadb9c7f8170d0866a1c7143f74d86f4e62a79b6
7
+ data.tar.gz: f026010f77b5f6ec28aceb257a16c2710b52d5e75651220fb001faed62509f96052b91062439b8f5fe6c758e80eff410dade3558152f730f126800d29e54e98a
data/.gitignore CHANGED
@@ -20,3 +20,5 @@ tmp
20
20
  *.o
21
21
  *.a
22
22
  mkmf.log
23
+
24
+ lib/cre_property_matcher/training_data
@@ -54,6 +54,15 @@ class Property
54
54
  end
55
55
  end
56
56
 
57
+ def slice(features)
58
+ instance_variables.each_with_object({}) do |curr, acc|
59
+ cleaned = curr.to_s.delete("@")
60
+ if features.include?(cleaned)
61
+ acc[cleaned] = self.instance_variable_get(curr)
62
+ end
63
+ end
64
+ end
65
+
57
66
  def load_from_csv_row(data)
58
67
  PropertyAttributes.attrs_to_sym_hash.each do |key, value|
59
68
  data_point = data[key]
@@ -1,3 +1,3 @@
1
1
  module CrePropertyMatcher
2
- VERSION = "0.1.4"
2
+ VERSION = "0.1.5"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cre_property_matcher
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.4
4
+ version: 0.1.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Brad Arner
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-08-16 00:00:00.000000000 Z
11
+ date: 2016-11-01 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -58,8 +58,6 @@ files:
58
58
  - lib/cre_property_matcher/property_data_calculator.rb
59
59
  - lib/cre_property_matcher/property_data_loader.rb
60
60
  - lib/cre_property_matcher/resources/state_hash.rb
61
- - lib/cre_property_matcher/training_data/property_data.csv
62
- - lib/cre_property_matcher/training_data/total_data_set.csv
63
61
  - lib/cre_property_matcher/version.rb
64
62
  - test/cre_property_matcher/property_data_calculator_test.rb
65
63
  - test/cre_property_matcher_test.rb
@@ -83,7 +81,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
83
81
  version: '0'
84
82
  requirements: []
85
83
  rubyforge_project:
86
- rubygems_version: 2.0.14
84
+ rubygems_version: 2.6.6
87
85
  signing_key:
88
86
  specification_version: 4
89
87
  summary: A basic implementation of the kNN Machine Learning Algorithm for Commercial
@@ -1 +0,0 @@
1
- ID,CIK Number,Property Name,Address,City,State,Zip Code,County,General Property Type,Specific Property Type,Year Built,Year Renovated,Loan Amount,Interest Rate,PPP,Loan Date,Maturity Date,Originator,Appraised Value,Appraisal Date,LTV,DSCR,NOI,NCF,Square Feet,Title / Collateral,Ground Lease Expiration,Number of Units,Unit of Measure,Borrower,Guarantor,Sponsor,Amortization,Loan Term,Accrual Type,I/O,I/O Period,37,ARD Loan,39,Annual Debt Service,First Payment Date,Balance at Maturity,Lockbox,Occupancy %,Monthly Debt Service,Monthly CapEx,Monthly Tax Escrow,Monthly Insurance Escrow,Monthly TI/LC Escrow,U/W Revenue (EGI),U/W Expenses,Single Tenant,Purpose,Portfolio,Portfolio ID,Related Portfolio,Largest Tenant,Largest Tenant SqFt,Largest Tenant Lease End Date,2nd Largest Tenant,2nd Largest Tenant SqFt,2nd Largest Tenant Lease End Date,Mezz Debt,Mezz Rate,APN,3rd Largest Tenant,3rd Largest Tenant Sq.Ft.,3rd Largest Tenant Lease End Date,4th Largest Tenant,4th Largest Tenant Sq.Ft.,4th Largest Tenant Lease End Date,5th Largest Tenant,5th Largest Tenant Sq. Ft.,5th Largest Tenant Lease End Date,2009 EGI,2009 EXP,2010 EGI,2010 EXP,2011 EGI,2011 EXP,2012 EGI,2012 EXP,2013 EGI,2013 EXP,2014 EGI,2014 EXP,2015 EGI,2015 EXP,2016 EGI,2016 EXP,2017 EGI,2017 EXP,Closing Costs,T-12 Statement Date,T-12 EGI,T-12 EXP
@@ -1 +0,0 @@
1
- ID,CIK Number,Property Name,Loan Date,Address,City,State,Zip Code,County,General Property Type,Specific Property Type,Year Built,Year Renovated,Loan Amount,Interest Rate,PPP,Maturity Date,Originator,Appraised Value,Appraisal Date,LTV,DSCR - NOI,NOI,NCF,Square Feet,Number of Units,Unit of Measure,Amortization,Loan Term,Accrual Type,Annual Debt Service,Balance at Maturity,Occupancy %,Monthly Debt Service,Monthly CapEx,Monthly Tax Escrow,Monthly Insurance Escrow,Monthly TI/LC Escrow,U/W Revenue (EGI),U/W Expenses,Single Tenant,Purpose,Largest Tenant,Largest Tenant SqFt,Largest Tenant Lease End Date,2nd Largest Tenant,2nd Largest Tenant SqFt,2nd Largest Tenant Lease End Date,Mezz Debt,Mezz Rate,3rd Largest Tenant,3rd Largest Tenant Sq.Ft.,3rd Largest Tenant Lease End Date,4th Largest Tenant,4th Largest Tenant Sq.Ft.,4th Largest Tenant Lease End Date,5th Largest Tenant,5th Largest Tenant Sq. Ft.,5th Largest Tenant Lease End Date,2009 EGI,2009 EXP,2010 EGI,2010 EXP,2011 EGI,2011 EXP,2012 EGI,2012 EXP,2013 EGI,2013 EXP,2014 EGI,2014 EXP,2015 EGI,2015 EXP,2016 EGI,2016 EXP,2017 EGI,2017 EXP,Closing Costs,T-12 Statement Date,T-12 EGI,T-12 EXP