File size: 582 Bytes
e07f629
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
"""Illustrate array shapes only; zero features are not research-compatible evidence."""
import numpy as np
from niche_screen import load_model, score_pages, score_site

model = load_model('.')
vectors = np.ones((2, 1024), dtype='f') / np.sqrt(1024)
a7_features = np.zeros((2, 9, 19), dtype='f')
operator_features = np.zeros((2, 9, 16), dtype='f')
print('Fictional projected inputs:', score_pages(model, vectors, a7_features)['commercial_score'].shape)
print('Operator score shape:', score_site(model, vectors, a7_features, operator_features, [True, False])['operator_score'].shape)