Skip to content

Instantly share code, notes, and snippets.

View saurabhghatnekar's full-sized avatar
🎯
Focusing

Saurabh Ghatnekar saurabhghatnekar

🎯
Focusing
View GitHub Profile
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
import "@openzeppelin/contracts/token/ERC721/ERC721.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
contract OnChainNFT is ERC721("OnChainNFT", "OCHN"), Ownable {
struct NFT {
uint256 id;
/home/heimdall/anaconda3/bin/python /mnt/attic/DADA/codes/cnn/Bnorm.py
/home/heimdall/anaconda3/lib/python3.6/site-packages/h5py/__init__.py:36: FutureWarning: Conversion of the second argument of issubdtype from `float` to `np.floating` is deprecated. In future, it will be treated as `np.float64 == np.dtype(float).type`.
from ._conv import register_converters as _register_converters
Using TensorFlow backend.
/home/heimdall/anaconda3/lib/python3.6/importlib/_bootstrap.py:219: RuntimeWarning: compiletime version 3.5 of module 'tensorflow.python.framework.fast_tensor_util' does not match runtime version 3.6
return f(*args, **kwds)
channels_last
2018-04-26 11:21:02.269997: I tensorflow/core/platform/cpu_feature_guard.cc:137] Your CPU supports instructions that this TensorFlow binary was not compiled to use: SSE4.1 SSE4.2 AVX AVX2 FMA
_________________________________________________________________
Layer (type) Output Shape Param #
@saurabhghatnekar
saurabhghatnekar / glcm
Created April 26, 2018 05:45
glcm accuracy
/home/heimdall/anaconda3/bin/python /mnt/attic/DADA/codes/glcm/class.py
/home/heimdall/anaconda3/lib/python3.6/site-packages/sklearn/cross_validation.py:41: DeprecationWarning: This module was deprecated in version 0.18 in favor of the model_selection module into which all the refactored classes and functions are moved. Also note that the interface of the new CV iterators are different from that of this module. This module will be removed in 0.20.
"This module will be removed in 0.20.", DeprecationWarning)
LR 71.42857142857143
precision recall f1-score support
0 0.67 0.67 0.67 3
1 0.75 0.75 0.75 4
avg / total 0.71 0.71 0.71 7
/home/heimdall/anaconda3/bin/python /mnt/attic/DADA/codes/cnn/Bnorm.py
/home/heimdall/anaconda3/lib/python3.6/site-packages/h5py/__init__.py:36: FutureWarning: Conversion of the second argument of issubdtype from `float` to `np.floating` is deprecated. In future, it will be treated as `np.float64 == np.dtype(float).type`.
from ._conv import register_converters as _register_converters
Using TensorFlow backend.
/home/heimdall/anaconda3/lib/python3.6/importlib/_bootstrap.py:219: RuntimeWarning: compiletime version 3.5 of module 'tensorflow.python.framework.fast_tensor_util' does not match runtime version 3.6
return f(*args, **kwds)
channels_last
2018-04-26 11:02:40.173029: I tensorflow/core/platform/cpu_feature_guard.cc:137] Your CPU supports instructions that this TensorFlow binary was not compiled to use: SSE4.1 SSE4.2 AVX AVX2 FMA
_________________________________________________________________
Layer (type) Output Shape Param #
This file has been truncated, but you can view the full file.
94S\xb9\xd2\xeb\x1e%\x82\xc8\xbcopW\x9c\x81\xd3\x8a\xe4|I\xe3+H\xad\xdes6[\x18\x1b\x8er=\xab\x8e\xf1W\xc4\xabh7H\x97,\xe5\xb2\x0e\x0fJ\xe1u\x1f\x12\xea^!\x97\xc8\x81\x9b\xcb\'\xef\x1e\xa7\xff\x00\xad]\x91\xc3\xca\xc7\rlO*j\xe6\xa6\xa5\xaa\xdcx\x9f^\xfb:\xc6\xee\x8a\xdf3\x1ek\xb0\xd1<1\xa7\xc1do\'N\nf$)\xca\x8fCY\x9f\x0f\xbc+\xf6t\x8e!\x18\x0f!\xdc\xd21\xae\xd7\xc4L\xb6V\r\xb0(\x18\xe0.j\xa7Q-"r\xd3\xa6\xe5\xefI\x10\xfc:\x99\xde\xee\xd4\xb6\xef\x96\xd7\xe6\xe0\x92\xc3w\xb7Z\xf4;F\x12\x92\xc8\x84g\xae\xe4 \xd7\x0b\xf0\xb65mJ\xdd\xa1 \xb4\x96gi\xc6pwv\xafB\x10\xc4\xb3\x85L3\x1eYG&\xbd\xdcs\xfd\xe2\xf4>\x12\x87\xc0\xfdMK;\xb3-\x99B\xbb\xca\xfd\xdc/O\xc6\xbcS\xe2_\xc2\xbbH\xfca5\xf5\xec\n\x96\xd7L\xad\t\x0b\xd5\xbf\x8b8\x1e\xa6\xbd\x9a\xc2\r\xac\xd1`.\xdeI\xea9\xac\x1f\x8a\x1a\x1c\xda\x86\x94\xba\x85\x8c&k\x9bEm\x89\x1b\x1eT\xfd\xee1\xc9\xe2\xb8\xd3i\x9d\x94\'\xc9Q_c\x8c\xd1~\x19xT@\'\xb3\xf2\xc3\x85\x04\xc8y\xc1\x1d\xb9\xae\x86\xca-"\xd0\xa5\xbc\x87k\x0e0\xe7\x96#\xady\xdd\xb7\xc4\xe8m\xe4{{\x87h\x99\x0e\xd0\xa5J
/home/heimdall/anaconda3/bin/python /mnt/attic/Projects/normimages/newMethod/stdData.py
Extracting the top 150 eigenfaces from 1702 faces
/home/heimdall/anaconda3/lib/python3.6/site-packages/sklearn/utils/deprecation.py:58: DeprecationWarning: Class RandomizedPCA is deprecated; RandomizedPCA was deprecated in 0.18 and will be removed in 0.20. Use PCA(svd_solver='randomized') instead. The new implementation DOES NOT store whiten ``components_``. Apply transform to get them.
warnings.warn(msg, category=DeprecationWarning)
done in 2.670s
Projecting the input data on the eigenfaces orthonormal basis
done in 0.524s
Fitting the classifier to the training set
done in 73.977s
Best estimator found by grid search:
/home/heimdall/anaconda3/bin/python /home/heimdall/pycharm-2018.1/helpers/pydev/pydev_run_in_console.py 36483 41605 /home/heimdall/Desktop/facial_final/train2.py
Running /home/heimdall/Desktop/facial_final/train2.py
import sys; print('Python %s on %s' % (sys.version, sys.platform))
sys.path.extend(['/home/heimdall/Desktop/facial_final'])
Python 3.6.4 |Anaconda, Inc.| (default, Jan 16 2018, 18:10:19)
Type 'copyright', 'credits' or 'license' for more information
IPython 6.2.1 -- An enhanced Interactive Python. Type '?' for help.
/home/heimdall/anaconda3/lib/python3.6/site-packages/sklearn/cross_validation.py:41: DeprecationWarning: This module was deprecated in version 0.18 in favor of the model_selection module into which all the refactored classes and functions are moved. Also note that the interface of the new CV iterators are different from that of this module. This module will be removed in 0.20.
@saurabhghatnekar
saurabhghatnekar / prerna jaffe
Created April 7, 2018 15:26
after manual train test split
/home/heimdall/anaconda3/bin/python /home/heimdall/pycharm-2018.1/helpers/pydev/pydev_run_in_console.py 37507 33143 /home/heimdall/Desktop/facial_final/train2.py
Running /home/heimdall/Desktop/facial_final/train2.py
import sys; print('Python %s on %s' % (sys.version, sys.platform))
sys.path.extend(['/home/heimdall/Desktop/facial_final'])
Python 3.6.4 |Anaconda, Inc.| (default, Jan 16 2018, 18:10:19)
Type 'copyright', 'credits' or 'license' for more information
IPython 6.2.1 -- An enhanced Interactive Python. Type '?' for help.
/home/heimdall/anaconda3/lib/python3.6/site-packages/sklearn/cross_validation.py:41: DeprecationWarning: This module was deprecated in version 0.18 in favor of the model_selection module into which all the refactored classes and functions are moved. Also note that the interface of the new CV iterators are different from that of this module. This module will be removed in 0.20.
@saurabhghatnekar
saurabhghatnekar / radhika testing
Created April 5, 2018 13:25
radhika testing on full data set
/home/heimdall/anaconda3/bin/python /mnt/attic/Projects/normimages/newMethod/testing.py
GridSearchCV(cv=None, error_score='raise',
estimator=SVC(C=1.0, cache_size=200, class_weight='balanced', coef0=0.0,
decision_function_shape='ovr', degree=3, gamma='auto', kernel='rbf',
max_iter=-1, probability=False, random_state=None, shrinking=True,
tol=0.001, verbose=False),
fit_params=None, iid=True, n_jobs=1,
param_grid={'C': [1000.0, 5000.0, 10000.0, 50000.0, 100000.0], 'gamma': [0.0001, 0.0005, 0.001, 0.005, 0.01, 0.1]},
pre_dispatch='2*n_jobs', refit=True, return_train_score='warn',
scoring=None, verbose=0)
@saurabhghatnekar
saurabhghatnekar / gist:eac7d5cfc741ddd62a057f7f6bb11fd4
Created January 20, 2018 13:29
Error while installing SirajCoin
heimdall@R558U ~ $ npm i -g sirajcoin
loadDep:webpack -> header | |#############------------------------------------|
WARN engine varstruct@6.1.1: wanted: {"node":">=4.5.0"} (current: {"node":"4.2.6loadDep:webpack -> fetch | |#############------------------------------------|
WARN engine webpack@3.10.0: wanted: {"node":">=4.3.0 <5.0.0 || >=5.10"} (currentloadDep:uuid -> afterAdd / |###############----------------------------------|
WARN engine hawk@6.0.2: wanted: {"node":">=4.5.0"} (current: {"node":"4.2.6","npnpm WARN deprecated graceful-fs@3.0.11: please upgrade to graceful-fs 4 for compatibility with current and future versions of Node.js
loadDep:yargs -> network \ |################---------------------------------|
WARN engine enhanced-resolve@3.4.1: wanted: {"node":">=4.3.0 <5.0.0 || >=5.10"} loadDep:yargs -> get / |################---------------------------------|
WARN engine loader-runner@2.3.0: wanted: {"node":">=4.3.0 <5.0.0 || >=5.10"} (culoadDep:yargs -> get - |################-------